Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

zed: Fix file logging being disabled accidentally (#51121)

Lukas Wirth429f4587a6d7
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs
index 3bf3fd190f6..f98d5106163 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()));