Closed jethrogb closed 6 years ago
All the init* functions will panic if they fail to setup logging, even though they return a Result: https://github.com/Geal/rust-syslog/blob/720490d/src/lib.rs#L151 https://github.com/Geal/rust-syslog/blob/720490d/src/lib.rs#L159 https://github.com/Geal/rust-syslog/blob/720490d/src/lib.rs#L167 https://github.com/Geal/rust-syslog/blob/720490d/src/lib.rs#L175 https://github.com/Geal/rust-syslog/blob/720490d/src/lib.rs#L204
init*
Result
ok, after today's refactoring, all of this should be fixed
All the
init*
functions will panic if they fail to setup logging, even though they return aResult
: https://github.com/Geal/rust-syslog/blob/720490d/src/lib.rs#L151 https://github.com/Geal/rust-syslog/blob/720490d/src/lib.rs#L159 https://github.com/Geal/rust-syslog/blob/720490d/src/lib.rs#L167 https://github.com/Geal/rust-syslog/blob/720490d/src/lib.rs#L175 https://github.com/Geal/rust-syslog/blob/720490d/src/lib.rs#L204