Geal / rust-syslog

Send syslog messages from Rust
MIT License
109 stars 55 forks source link

Panics if setting up logging fails #18

Closed jethrogb closed 6 years ago

jethrogb commented 7 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

Geal commented 7 years ago

ok, after today's refactoring, all of this should be fixed