diff --git a/src/log.zig b/src/log.zig index 8759a44..58d862d 100644 --- a/src/log.zig +++ b/src/log.zig @@ -25,6 +25,7 @@ pub fn setLevel(level: Level) void { pub fn deinit() void { if (writer) |w| { w.context.close(); + writer = null; } }