Skip to content

Commit

Permalink
refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Ho authored and Colin Ho committed Aug 22, 2024
1 parent 571ea3f commit d109504
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,12 @@ pub mod pylib {
_ => LevelFilter::Error,

Check warning on line 82 in src/lib.rs

View check run for this annotation

Codecov / codecov/patch

src/lib.rs#L82

Added line #L82 was not covered by tests
};

let logger = pyo3_log::Logger::default().filter(level_filter);
let handle = logger.install().unwrap();
LOG_RESET_HANDLE.get_or_init(|| handle);
let install_handle = || {
let logger = pyo3_log::Logger::default().filter(level_filter);
logger.install().unwrap()
};

LOG_RESET_HANDLE.get_or_init(install_handle).reset();
Ok(())
}

Expand Down

0 comments on commit d109504

Please sign in to comment.