Skip to content

Commit 2640554

Browse files
Avoid dumping cargo log messages
collector_raw_cargo is prefixed by collector, and env_logger uses prefixes solely to determine whether to log.
1 parent 740b447 commit 2640554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub fn command_output(cmd: &mut Command) -> anyhow::Result<process::Output> {
148148
child.stderr.take().unwrap(),
149149
&mut |is_stdout, buffer, _is_done| {
150150
// Send output if trace logging is enabled
151-
if log::log_enabled!(target: "collector_raw_cargo", log::Level::Trace) {
151+
if log::log_enabled!(target: "raw_cargo_messages", log::Level::Trace) {
152152
use std::io::Write;
153153
if is_stdout {
154154
stdout_writer.write_all(&buffer[stdout.len()..]).unwrap();

0 commit comments

Comments
 (0)