Have Zed cli output logs path to stderr (#22509)

When switching from just running the editor directly to using the CLI I
missed the logs in the terminal and started using `--foreground`. I
realized this was because there was a tiny amount of effort involved in
finding out where logs were being written to. Having the cli output it
to stderr helps make this more visible.

Seems like such a minor thing not listing in release notes.

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2024-12-30 14:14:08 -07:00 committed by GitHub
parent a119688a50
commit e9bd4b2890
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -257,6 +257,7 @@ fn main() -> Result<()> {
if args.foreground { if args.foreground {
app.run_foreground(url)?; app.run_foreground(url)?;
} else { } else {
eprintln!("Logs are written to {:?}", paths::log_file());
app.launch(url)?; app.launch(url)?;
sender.join().unwrap()?; sender.join().unwrap()?;
pipe_handle.join().unwrap()?; pipe_handle.join().unwrap()?;