From 546b9816282287a2fa67349d6160f96dfece4a31 Mon Sep 17 00:00:00 2001 From: Elijah Zupancic Date: Thu, 16 Dec 2021 09:58:51 -0800 Subject: [PATCH] fix: change error msg to output to stderr --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 6a68d59..de10e23 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -92,8 +92,7 @@ impl LogLevel { match numeric_string.parse::() { Ok(code) => Ok(LogLevel::OTHER(code)), Err(_) => { - // Maybe there is a whitespace issue? - println!("Attempting to parse numeric string: {}", level); + eprintln!("Attempting to parse numeric string: {}", level); Err(LogLevelParseError::from(level)) } }