Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3765222
D3014.id7692.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.id7692.diff
View Options
diff --git a/Cargo.toml b/Cargo.toml
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "alkane"
-version = "0.1.1"
+version = "0.1.2"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
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
Sat, Nov 23, 11:08 (17 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257831
Default Alt Text
D3014.id7692.diff (1 KB)
Attached To
Mode
D3014: Log correctly stdout and stderr
Attached
Detach File
Event Timeline
Log In to Comment