diff --git a/src/environment.rs b/src/environment.rs index 1dd52af..8b5840a 100644 --- a/src/environment.rs +++ b/src/environment.rs @@ -8,7 +8,7 @@ pub fn get_env_variable(var_name: &str) -> String { match env::var(var_name) { Ok(v) => v, Err(_) => { - error!(target: "bot_warn_errors", "Failed to fetch the {} environment variable.", var_name); + error!("Failed to fetch the {} environment variable.", var_name); panic!("Exiting..."); } }