From 363157a7f831fc29c6ed1a26880ea756521317b9 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Fri, 10 May 2024 20:00:45 -0400 Subject: Truncate Log File --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 3d5b144..92e1809 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,6 +35,7 @@ impl Plugin for TerminalDisplayPlugin { let log_file = OpenOptions::new() .write(true) .create(true) + .truncate(true) .open("debug.log") .unwrap(); let file_layer = tracing_subscriber::fmt::Layer::new() -- cgit v1.2.3