diff --git a/src/root.zig b/src/root.zig index e63a50f..8927df0 100644 --- a/src/root.zig +++ b/src/root.zig @@ -56,7 +56,7 @@ pub fn Logger(comptime base_tags: []const @Type(.enum_literal)) type { comptime format: []const u8, args: anytype, ) void { - if (options.disabled_in_test) return; + if (builtin.is_test and options.disabled_in_test) return; const all_tags = comptime base_tags ++ tags; if (!options.enabled(all_tags)) return;