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:
@@ -35,6 +35,7 @@ image = "0.23"
|
||||
lazy_static = "1.4.0"
|
||||
libc = "0.2"
|
||||
log = "0.4"
|
||||
log-panics = { version = "2.0", features = ["with-backtrace"] }
|
||||
num_cpus = "1.13.0"
|
||||
parking_lot = "0.11.1"
|
||||
postage = { version = "0.4.1", features = ["futures-traits"] }
|
||||
|
||||
@@ -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