Replies: 2 comments 1 reply
-
|
Hi, yes, that seems to be easy to fix - by throwing messages away. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
It's now available with version 0.28. See Logger::panic_if_error_channel_is_broken |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have noticed that when flexi_logger is setup to use stderr (or even stdout) to print, it may panic if those descriptors are closed (thanks to
eprintln/println), and in case a file errors AND the stderr (or stdout) are closed, it will also panic (because of theeprintlnin file error case). (assuming flexi_logger is configured to also log to stderr / stdout)I wanted to know if it is within scope to maybe make stdout & stderr failing not result in a panic before making a actual issue.
reproduction:
will log into the file:
when having it crash via flexi_logger, the backtrace indicates the following function is the problem:
flexi_logger/src/util.rs
Line 90 in 98f1e9a
rustc 1.76.0
flexi_logger 0.27.4
Beta Was this translation helpful? Give feedback.
All reactions