From f74d2c3905105723f7cdbe5165730298a238aa9b Mon Sep 17 00:00:00 2001 From: Victor Mignot Date: Thu, 2 Jan 2025 16:47:24 +0100 Subject: [PATCH] Remove target field from error logging macro --- src/environment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..."); } }