From 77fc3973b69e7dbce696d9cdd981d0d249fffb4c Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Wed, 15 May 2024 17:54:34 -0700 Subject: [PATCH] perf(wm): switch to daily rotating log files --- komorebi/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/komorebi/src/main.rs b/komorebi/src/main.rs index fb5d6b018..e991ee555 100644 --- a/komorebi/src/main.rs +++ b/komorebi/src/main.rs @@ -52,8 +52,8 @@ fn setup() -> Result<(WorkerGuard, WorkerGuard)> { std::env::set_var("RUST_LOG", "info"); } - let appender = tracing_appender::rolling::never(std::env::temp_dir(), "komorebi_plaintext.log"); - let color_appender = tracing_appender::rolling::never(std::env::temp_dir(), "komorebi.log"); + let appender = tracing_appender::rolling::daily(std::env::temp_dir(), "komorebi_plaintext.log"); + let color_appender = tracing_appender::rolling::daily(std::env::temp_dir(), "komorebi.log"); let (non_blocking, guard) = tracing_appender::non_blocking(appender); let (color_non_blocking, color_guard) = tracing_appender::non_blocking(color_appender);