cli: Log to stderr instead of stdout (#46)

Fixes pipe issues.
This commit is contained in:
Robin Avery 2024-03-01 00:27:10 -05:00 committed by GitHub
parent b80d361e91
commit 37ddbb7f4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ fn main() {
let format =
tracing_subscriber::fmt::format().with_ansi(use_colors).with_target(false).without_time();
let builder = tracing_subscriber::fmt().event_format(format);
let builder = tracing_subscriber::fmt().event_format(format).with_writer(std::io::stderr);
if let Some(level) = args.log_level {
builder
.with_max_level(match level {