log error for stderr

master
rascul 2 years ago
parent fea7e96970
commit 43adda0990

@ -1,7 +1,7 @@
use std::process::{Command, ExitStatus};
use colored::Colorize;
use log::info;
use log::{error, info};
use serde_derive::Deserialize;
use crate::result::Result;
@ -54,7 +54,7 @@ impl App {
if !output.stderr.is_empty() {
let s = String::from_utf8(output.stderr)?;
for line in s.lines() {
info!("[{}] stderr: {}", &self.name.yellow(), line);
error!("[{}] stderr: {}", &self.name.yellow(), line);
}
}
Ok(())

Loading…
Cancel
Save