Skip to content

Commit

Permalink
Use stderr/stderr consistently
Browse files Browse the repository at this point in the history
Summary: Weird to qualify one but not the other, so make them consistent.

Reviewed By: bayarmunkh

Differential Revision: D53200048

fbshipit-source-id: 44c26a649f78caf12e22536a105089472e960d81
  • Loading branch information
ndmitchell authored and facebook-github-bot committed Jan 29, 2024
1 parent e5888de commit 83af14e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions td_util/src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//! Utilities for working with the `tracing` crate.
//! Ensure all supertd projects have a consistent way of logging.

use std::io;
use std::io::stderr;
use std::io::stdout;
use std::io::IsTerminal;

Expand All @@ -32,7 +32,7 @@ pub fn init_tracing(directives: Vec<Directive>) {
let layer = tracing_subscriber::fmt::layer()
.with_line_number(false)
.with_file(false)
.with_writer(io::stderr)
.with_writer(stderr)
.with_ansi(stdout().is_terminal())
.with_target(false)
.with_filter(env_filter);
Expand Down

0 comments on commit 83af14e

Please sign in to comment.