Page MenuHomeDevCentral

D3014.id7692.diff
No OneTemporary

D3014.id7692.diff

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

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)

Event Timeline