Skip to content

Commit

Permalink
fix: verbose logging was always info
Browse files Browse the repository at this point in the history
  • Loading branch information
boxdot authored and emilio committed Aug 25, 2023
1 parent aeea9c6 commit acb1b8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/logging.rs
Expand Up @@ -14,7 +14,7 @@ pub struct ErrorLogger;

impl TraceLogger {
pub fn init() -> Result<(), SetLoggerError> {
log::set_logger(&InfoLogger)?;
log::set_logger(&TraceLogger)?;
log::set_max_level(LevelFilter::Trace);
Ok(())
}
Expand All @@ -37,7 +37,7 @@ impl log::Log for TraceLogger {

impl WarnLogger {
pub fn init() -> Result<(), SetLoggerError> {
log::set_logger(&InfoLogger)?;
log::set_logger(&WarnLogger)?;
log::set_max_level(LevelFilter::Warn);
Ok(())
}
Expand All @@ -60,7 +60,7 @@ impl log::Log for WarnLogger {

impl ErrorLogger {
pub fn init() -> Result<(), SetLoggerError> {
log::set_logger(&InfoLogger)?;
log::set_logger(&ErrorLogger)?;
log::set_max_level(LevelFilter::Error);
Ok(())
}
Expand Down

0 comments on commit acb1b8d

Please sign in to comment.