From 49b668f1988d0c7a70269167bab094b7bfb8a19a Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 23 Sep 2026 13:15:37 +0200 Subject: make debug a global MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- src/main.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 219bf1d..6bb8551 100644 --- a/src/main.zig +++ b/src/main.zig @@ -9,10 +9,11 @@ pub const Digest = [16]u8; const log = std.log.scoped(.rbc); const BUFFER_SIZE = 1024; +const DEBUG = (@import("builtin").mode == .Debug); // tune log options pub const std_options = std.Options{ - .log_level = if (@import("builtin").mode == .Debug) .debug else .info, + .log_level = if (DEBUG) .debug else .warn, }; pub fn main(init: std.process.Init) !void { -- cgit 1.4.1