diff --git a/src/App.zig b/src/App.zig index 2ead3b9ad..3e83e414d 100644 --- a/src/App.zig +++ b/src/App.zig @@ -237,7 +237,7 @@ pub fn needsConfirmQuit(self: *const App) bool { /// Drain the mailbox. fn drainMailbox(self: *App, rt_app: *apprt.App) !void { while (self.mailbox.pop()) |message| { - if (std.log.logEnabled(.debug, .app)) { + if (comptime std.log.logEnabled(.debug, .app)) { switch (message) { // these tend to be way too verbose for normal debugging .redraw_surface, .redraw_inspector => {},