[-] Remove debug command output
This commit is contained in:
@@ -9,15 +9,15 @@ use crate::utils::run_cmd;
|
|||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
pub struct Encoder {
|
pub struct Encoder {
|
||||||
name: String,
|
pub(crate) name: String,
|
||||||
cmd: String,
|
pub(crate) cmd: String,
|
||||||
suffix: String,
|
pub(crate) suffix: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
pub struct Encoders {
|
pub struct Encoders {
|
||||||
processes: u32,
|
pub(crate) processes: usize,
|
||||||
encoders: Vec<Encoder>
|
pub(crate) encoders: Vec<Encoder>
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Encoder {
|
impl Encoder {
|
||||||
@@ -41,7 +41,7 @@ impl Encoders {
|
|||||||
// Skip if encoded video already exists
|
// Skip if encoded video already exists
|
||||||
if enc_out.exists() { continue }
|
if enc_out.exists() { continue }
|
||||||
|
|
||||||
debug!("Encoding '{}' for {orig}...", enc.name);
|
info!("Encoding '{}' for {orig}...", enc.name);
|
||||||
let start = Instant::now();
|
let start = Instant::now();
|
||||||
|
|
||||||
// Create tmp (this is to prevent partially completed encoding results being detected as completed)
|
// Create tmp (this is to prevent partially completed encoding results being detected as completed)
|
||||||
@@ -50,7 +50,7 @@ impl Encoders {
|
|||||||
|
|
||||||
// Convert to tmp
|
// Convert to tmp
|
||||||
enc.execute(orig, tmp_out.to_str().context("Call to path.to_str failed")?)?;
|
enc.execute(orig, tmp_out.to_str().context("Call to path.to_str failed")?)?;
|
||||||
debug!("Done, took {:.2} minutes, copying result...", start.elapsed().as_secs_f32() / 60.0);
|
info!("Done, took {:.2} minutes, copying result...", start.elapsed().as_secs_f32() / 60.0);
|
||||||
|
|
||||||
// Copy results
|
// Copy results
|
||||||
if let Some(parent) = enc_out.parent() {
|
if let Some(parent) = enc_out.parent() {
|
||||||
|
|||||||
@@ -21,6 +21,6 @@ pub fn run_cmd(cmd: &str) -> Result<Output> {
|
|||||||
error!("Command output: {:?}", out);
|
error!("Command output: {:?}", out);
|
||||||
bail!(String::from_utf8(out.stderr)?);
|
bail!(String::from_utf8(out.stderr)?);
|
||||||
}
|
}
|
||||||
debug!("Command output: {:?}", out);
|
// debug!("Command output: {:?}", out);
|
||||||
Ok(out)
|
Ok(out)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user