Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3930471
D3014.id7693.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3014.id7693.diff
View Options
diff --git a/src/runner/mod.rs b/src/runner/mod.rs
--- a/src/runner/mod.rs
+++ b/src/runner/mod.rs
@@ -8,7 +8,7 @@
use std::ffi::OsStr;
use std::fmt::{Debug, Display};
-use std::process::{Command, Stdio};
+use std::process::Command;
use log::{error, info, warn};
use serde::Serialize;
@@ -70,21 +70,19 @@
let result = Command::new(command)
.args(args)
.envs(environment)
- .stdout(Stdio::piped())
- .stderr(Stdio::piped())
.output();
match result {
Ok(process_output) => {
let stdout = read_bytes(&process_output.stdout);
- let stderr = read_bytes(&process_output.stdout);
+ let stderr = read_bytes(&process_output.stderr);
if !stdout.is_empty() {
info!("Channel stdout: {}", stdout);
}
if !stderr.is_empty() {
- warn!("Channel stderr: {}", stdout);
+ warn!("Channel stderr: {}", stderr);
}
match process_output.status.code() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 14:05 (16 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2312587
Default Alt Text
D3014.id7693.diff (1 KB)
Attached To
Mode
D3014: Log correctly stdout and stderr
Attached
Detach File
Event Timeline
Log In to Comment