startup: remove panic hook
doesn't seem to be working anyways
This commit is contained in:
@@ -18,9 +18,7 @@ fn setup_logging(path: &DataPath) {
|
|||||||
let (maybe_non_blocking, maybe_guard) = {
|
let (maybe_non_blocking, maybe_guard) = {
|
||||||
let log_path = path.path(DataPathType::Log);
|
let log_path = path.path(DataPathType::Log);
|
||||||
// Setup logging to file
|
// Setup logging to file
|
||||||
use std::panic;
|
|
||||||
|
|
||||||
use tracing::error;
|
|
||||||
use tracing_appender::{
|
use tracing_appender::{
|
||||||
non_blocking,
|
non_blocking,
|
||||||
rolling::{RollingFileAppender, Rotation},
|
rolling::{RollingFileAppender, Rotation},
|
||||||
@@ -31,9 +29,6 @@ fn setup_logging(path: &DataPath) {
|
|||||||
log_path,
|
log_path,
|
||||||
format!("notedeck-{}.log", env!("CARGO_PKG_VERSION")),
|
format!("notedeck-{}.log", env!("CARGO_PKG_VERSION")),
|
||||||
);
|
);
|
||||||
panic::set_hook(Box::new(|panic_info| {
|
|
||||||
error!("Notedeck panicked: {:?}", panic_info);
|
|
||||||
}));
|
|
||||||
|
|
||||||
let (non_blocking, _guard) = non_blocking(file_appender);
|
let (non_blocking, _guard) = non_blocking(file_appender);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user