commit 3b3b8246c83f9abd2d217ba4fbdf7483882abfc7
parent bdea3da5f02ddef522f562809e18496774df2802
Author: William Casarin <jb55@jb55.com>
Date: Mon, 18 Nov 2024 17:04:36 -0800
startup: remove panic hook
doesn't seem to be working anyways
Diffstat:
1 file changed, 0 insertions(+), 5 deletions(-)
diff --git a/src/bin/notedeck.rs b/src/bin/notedeck.rs
@@ -18,9 +18,7 @@ fn setup_logging(path: &DataPath) {
let (maybe_non_blocking, maybe_guard) = {
let log_path = path.path(DataPathType::Log);
// Setup logging to file
- use std::panic;
- use tracing::error;
use tracing_appender::{
non_blocking,
rolling::{RollingFileAppender, Rotation},
@@ -31,9 +29,6 @@ fn setup_logging(path: &DataPath) {
log_path,
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);