Closed paulirotta closed 4 years ago
The above PR solved my immediate problem, but the risk of such a simple fix (ignoring error messages) continues to bother me.
Perhaps a better approach is
if !log_enabled!(Error) {
// Start quicksilver logging..
}
https://docs.rs/log/0.4.8/log/macro.log_enabled.html
Opinions or other suggestions?
Both functions return SetLoggerError
, which is only used when another logger has been initialized. For that reason, I think that swallowing the errors is a good solution.
Don't unwrap log initialization, or for WASM use the optional try_ initialization
625
Checks
CHANGES.md
, with [BREAKING] next to all breaking changessrc/lib.rs
andREADME.md
were updated