From 0e24bb931ce6b099d4d160afbc519a5f7f67600e Mon Sep 17 00:00:00 2001 From: "zed-zippy[bot]" <234243425+zed-zippy[bot]@users.noreply.github.com> Date: Tue, 10 Mar 2026 06:53:25 +0000 Subject: [PATCH] zed: Fix file logging being disabled accidentally (#51121) (cherry-pick to stable) (#51163) Cherry-pick of #51121 to stable ---- Release Notes: - N/A *or* Added/Fixed/Improved ... Co-authored-by: Lukas Wirth --- crates/zed/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs index 88ae84f1d4c1437aadfe86cd955f95cf2c7f3065..7cf238e9dda22f1cd60056ffd3556cecdf3fb231 100644 --- a/crates/zed/src/main.rs +++ b/crates/zed/src/main.rs @@ -276,7 +276,7 @@ fn main() { zlog::init(); - if true { + if stdout_is_a_pty() { zlog::init_output_stdout(); } else { let result = zlog::init_output_file(paths::log_file(), Some(paths::old_log_file()));