Skip to content

Commit

Permalink
Log to stderr not stdout (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
l4l authored Jun 23, 2024
1 parent 0d7af46 commit e9c86d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn setup_logger(level: LevelFilter, args: &Args) -> Result<()> {
))
})
.level(level)
.chain(std::io::stdout());
.chain(std::io::stderr());

let dispatcher = if let Some(log_file) = &args.log_file {
dispatcher.chain(fern::log_file(log_file)?)
Expand Down

0 comments on commit e9c86d5

Please sign in to comment.