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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user