From 42f5f94fb41d8a218eb34ccd64fe59540d0965c6 Mon Sep 17 00:00:00 2001 From: Pascal Zittlau Date: Tue, 28 Oct 2025 10:23:01 +0100 Subject: [PATCH] fix test check --- src/root.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;