Drakulix / simplelog.rs

Simple Logging Facility for Rust
https://docs.rs/simplelog/
Apache License 2.0
414 stars 71 forks source link

Debug mode for set_time_offset_to_local #110

Closed Sytten closed 2 years ago

Sytten commented 2 years ago

Hi! Some of our users (on macos aarch64) reported errors due to set_time_offset_to_local and I followed https://github.com/Drakulix/simplelog.rs/issues/102#issuecomment-1118966559 to patch it, but it would be nice to have a "debug" mode where we could get some more information about what happened. Like was it that the thread count was not one for this platform or that a pointer was null after a sys call? That would help us understand why it failed to set the local time which worked before the change to the time crate (even if it might have been unsafe). Thanks :)

Sytten commented 2 years ago

I realized the debug would need to go inside the time crate, not in this crate. My bad...