aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-05-10 20:00:45 -0400
committerLibravatar Silas Bartha <[email protected]>2024-05-10 20:00:45 -0400
commit363157a7f831fc29c6ed1a26880ea756521317b9 (patch)
tree2960f693f482a34cd77fde673ceba49e2cfa503b /src/lib.rs
parentec8f43e79cb8a182c0dc73d103e632fac96293b6 (diff)
Truncate Log Filev0.1.3
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
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()