Remove target field from error logging macro

This commit is contained in:
Victor Mignot 2025-01-02 16:47:24 +01:00
parent 54889bdf89
commit f74d2c3905
Signed by: dala
SSH key fingerprint: SHA256:+3O9MhlDc2tJL0n+E+Myr7nL+74DP9AXdIXHmIqZTkY

View file

@ -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...");
}
}