From ef0fe8b373563ecd9701bcdee73169b94f6def47 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Wed, 20 Oct 2021 17:05:50 +0200 Subject: change hook errors to be logged as warnings they in nearly all cases aren't critical enough to warrant an actual error messages --- macros/src/macro_types/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'macros') diff --git a/macros/src/macro_types/mod.rs b/macros/src/macro_types/mod.rs index 0afec11..ac8e678 100644 --- a/macros/src/macro_types/mod.rs +++ b/macros/src/macro_types/mod.rs @@ -105,7 +105,7 @@ impl IrcItem for Command { let result = #call; if let Err(err) = result { - tracing::error!("error in matcher: {:?}: {:?}", #name, err) + tracing::warn!("error in matcher: {:?}: {:?}", #name, err) } } } @@ -173,7 +173,7 @@ impl IrcItem for Hook { let result = #call; if let Err(err) = result { - tracing::error!("error in matcher: {:?}: {:?}", #name, err) + tracing::warn!("error in matcher: {:?}: {:?}", #name, err) } } } @@ -270,7 +270,7 @@ impl IrcItem for Matcher { let result = #call; if let Err(err) = result { - tracing::error!("error in matcher: {:?}: {:?}", #name, err) + tracing::warn!("error in matcher: {:?}: {:?}", #name, err) } } } -- cgit v1.2.3