We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 026deca commit e438605Copy full SHA for e438605
integration-test/src/lib.rs
@@ -69,15 +69,19 @@ pub fn run_node(
69
let path = std::fs::canonicalize(foundry_path).expect("Can't find foundry binary");
70
let mut command = Command::new(path);
71
let id = ID_COUNT.fetch_add(1, Ordering::SeqCst);
72
- let LogFiles {
73
- stdout,
74
- stderr,
75
- } = create_log_files(id);
+
+ if let Ok(x) = std::env::var("USE_LOG") {
+ if x == "1" {
+ let LogFiles {
76
+ stdout,
77
+ stderr,
78
+ } = create_log_files(id);
79
+ command.stdout(stdout).stderr(stderr);
80
+ }
81
82
83
command
84
.env("RUST_LOG", rust_log)
- .stdout(stdout)
- .stderr(stderr)
85
.arg("--app-desc-path")
86
.arg(app_desc_path)
87
.arg("--link-desc-path")
0 commit comments