diff options
Diffstat (limited to 'src/logging.rs')
-rw-r--r-- | src/logging.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logging.rs b/src/logging.rs index 1e6b1e42..f5340d05 100644 --- a/src/logging.rs +++ b/src/logging.rs @@ -53,9 +53,9 @@ impl<T: Send + io::Write> log::Log for Logger<T> { } } -pub fn initialize(options: &cli::Options) { +pub fn initialize(options: &cli::Options) -> Result<(), log::SetLoggerError> { log::set_logger(|max_log_level| { max_log_level.set(options.log_level); Box::new(Logger::new(io::stdout(), options.log_level)) - }).unwrap_or_else(|e| die!("{}", e)); + }) } |