Log panics when not attached to a pty

Hopefully this will give us better forensics if we panic in production.
This commit is contained in:
Nathan Sobo
2021-09-15 04:51:22 -06:00
parent 914112f2b5
commit 7d59b2d861
3 changed files with 13 additions and 0 deletions
+1
View File
@@ -90,6 +90,7 @@ fn init_logger() {
.expect("could not open logfile");
simplelog::WriteLogger::init(level, simplelog::Config::default(), log_file)
.expect("could not initialize logger");
log_panics::init();
}
}