Files
zag/test
Daniel Samson 3a4c4fa326
CI / test (pull_request) Successful in 3m18s
daemon: flush deprecation warnings into the log at startup
The re-exec'd daemon inherits the buffered stderr writer over
logs/zag.log from main.zig, so the deprecation warnings printed by
Context.loadConfigOnce stayed in the buffer until the process
exited and 'zag service logs' showed nothing right after starting
with an old config. Flush stderr right after printing the
warnings so they reach the log at startup, as the issue requires.

e2e now starts the daemon with a config that still carries the
deprecated load-level settings and asserts the warnings are in the
log while the daemon is running; the settings themselves are
ignored, so the effective config is unchanged for the rest of
the suite.
2026-11-12 10:40:41 +00:00
..