From 7864b13105897066ddb1499ad936c885c2cfb3fb Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 28 Jan 2019 19:33:59 -0800 Subject: get regular log lines flowing through slog The plan here is to replace slog with env_logger (much simpler!), but not there yet. --- rust/src/bin/fatcatd.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rust/src/bin') diff --git a/rust/src/bin/fatcatd.rs b/rust/src/bin/fatcatd.rs index ccce6725..2c8614c2 100644 --- a/rust/src/bin/fatcatd.rs +++ b/rust/src/bin/fatcatd.rs @@ -49,6 +49,8 @@ fn main() -> Result<()> { let drain = slog_term::CompactFormat::new(decorator).build().fuse(); let drain = slog_async::Async::new(drain).build().fuse(); let logger = Logger::root(drain, o!()); + let _scope_guard = slog_scope::set_global_logger(logger.clone()); + let _log_guard = slog_stdlog::init().unwrap(); let formatter = DefaultLogFormatter; // sentry exception handling -- cgit v1.2.3