From 56e137497e3100182355cd1878c2aa366737c2ab Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Wed, 5 Aug 2026 16:46:53 -0500 Subject: [PATCH] main: loop-stats diagnostic off by default it earned its keep finding the sub-ms sleep bug; steady state does not want a stderr line every 5s. the running canary is unaffected until it is redeployed. Co-Authored-By: Claude Fable 5 --- src/main.zig | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.zig b/src/main.zig index 074a301..ba1591d 100644 --- a/src/main.zig +++ b/src/main.zig @@ -59,10 +59,11 @@ pub const default_stack_size = 8 * 1024 * 1024; // ReleaseSafe GPF from fiber context-switch codegen bug, persistent ~10-15% coverage // degradation, zig team marks Evented as experimental. See docs/evented-attempt.md. // Can revisit when zig's Evented runtime matures. -/// diagnostic build: zio prints loop-internal stats to stderr every 5s. -/// the bug under investigation breaks the HTTP metrics path itself, so -/// observation cannot depend on it. -pub const zio_debug_loop_stats = true; +/// zio prints loop-internal stats to stderr every 5s when true. invaluable +/// while diagnosing a wedged scheduler (the HTTP metrics path is exactly +/// what fails in that case), noise in steady state. left off by default; +/// flip it on for a canary or an investigation. +pub const zio_debug_loop_stats = false; const backend_config = @import("backend_config"); const zio = @import("zio"); -- 2.51.2