Fix bug where writer could be used after its file is closed

This commit is contained in:
Cameron Reed 2024-10-16 11:06:00 -06:00
parent e2d1d26d0b
commit ac5d97dcca

View File

@ -25,6 +25,7 @@ pub fn setLevel(level: Level) void {
pub fn deinit() void {
if (writer) |w| {
w.context.close();
writer = null;
}
}