summaryrefslogtreecommitdiffstats
path: root/rust/src/bin/fatcatd.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-28 19:33:59 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-28 19:34:01 -0800
commit7864b13105897066ddb1499ad936c885c2cfb3fb (patch)
tree11425760c452fd29a665cc440d61902a3df81e3d /rust/src/bin/fatcatd.rs
parentfd9d23e39c528a32546e08954339b82c429c67fc (diff)
downloadfatcat-7864b13105897066ddb1499ad936c885c2cfb3fb.tar.gz
fatcat-7864b13105897066ddb1499ad936c885c2cfb3fb.zip
get regular log lines flowing through slog
The plan here is to replace slog with env_logger (much simpler!), but not there yet.
Diffstat (limited to 'rust/src/bin/fatcatd.rs')
-rw-r--r--rust/src/bin/fatcatd.rs2
1 files changed, 2 insertions, 0 deletions
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