Skip to content

Commit 45b74d8

Browse files
Only record cargo timings on env variable
For example CI doesn't really care about timings but does want raw cargo output.
1 parent c1345ad commit 45b74d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/src/execute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ impl<'a> CargoProcess<'a> {
297297
}
298298
}
299299
cmd.args(&self.cargo_args);
300-
if log::log_enabled!(target: "raw_cargo_messages", log::Level::Trace) {
300+
if env::var_os("CARGO_RECORD_TIMING").is_some() {
301301
cmd.arg("-Zunstable-options");
302302
cmd.arg("-Ztimings");
303303
}

0 commit comments

Comments
 (0)