From b06c1b32483c56184817e45584f56ff28f703d5e Mon Sep 17 00:00:00 2001 From: gumruyanzh Date: Wed, 25 Feb 2026 22:35:31 -0800 Subject: [PATCH] fix: use correct stream type when initializing stderr log file Line 184 passed `.stdout` instead of `.stderr` to `getLogFile()` when initializing the stderr log file. This caused the `--log-error` option to be ignored, with both stdout and stderr logs using the same destination configuration. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/jetzig/Environment.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jetzig/Environment.zig b/src/jetzig/Environment.zig index 340b4163..7fd4db04 100644 --- a/src/jetzig/Environment.zig +++ b/src/jetzig/Environment.zig @@ -181,7 +181,7 @@ pub fn init(parent_allocator: std.mem.Allocator, env_options: EnvironmentOptions defer options.deinit(); const stdout = try getLogFile(.stdout, options.options); - const stderr = try getLogFile(.stdout, options.options); + const stderr = try getLogFile(.stderr, options.options); const log_queue = try allocator.create(jetzig.loggers.LogQueue); log_queue.* = jetzig.loggers.LogQueue.init(allocator);