Skip to content

Commit

Permalink
hgcommands: show milliseconds on RUST_LOG output
Browse files Browse the repository at this point in the history
Summary: This makes it a bit easier to track down perf issues printed by RUST_LOGs.

Reviewed By: sfilipco

Differential Revision: D23095463

fbshipit-source-id: 78221a1992389f512fac6e6e633be6d19123e04a
  • Loading branch information
quark-zju authored and quark committed Aug 21, 2020
1 parent 65659eb commit 6e3b0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eden/scm/lib/hgcommands/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub fn run_command(args: Vec<String>, io: &mut clidispatch::io::IO) -> i32 {

// env_logger cannot be inited twice. So this will fail (as expected)
// if hgcommands is nested (ex. for "hg continue").
let _ = env_logger::try_init();
let _ = env_logger::builder().format_timestamp_millis().try_init();

let exit_code = {
let _guard = span.enter();
Expand Down

0 comments on commit 6e3b0d3

Please sign in to comment.