diff --git a/backend/src/encoder.rs b/backend/src/encoder.rs index 0ec4f88..a88e93f 100644 --- a/backend/src/encoder.rs +++ b/backend/src/encoder.rs @@ -9,15 +9,15 @@ use crate::utils::run_cmd; #[derive(Deserialize, Debug)] pub struct Encoder { - name: String, - cmd: String, - suffix: String, + pub(crate) name: String, + pub(crate) cmd: String, + pub(crate) suffix: String, } #[derive(Deserialize, Debug)] pub struct Encoders { - processes: u32, - encoders: Vec + pub(crate) processes: usize, + pub(crate) encoders: Vec } impl Encoder { @@ -41,7 +41,7 @@ impl Encoders { // Skip if encoded video already exists if enc_out.exists() { continue } - debug!("Encoding '{}' for {orig}...", enc.name); + info!("Encoding '{}' for {orig}...", enc.name); let start = Instant::now(); // Create tmp (this is to prevent partially completed encoding results being detected as completed) @@ -50,7 +50,7 @@ impl Encoders { // Convert to tmp 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 if let Some(parent) = enc_out.parent() { diff --git a/backend/src/utils.rs b/backend/src/utils.rs index 9100d38..f18da36 100644 --- a/backend/src/utils.rs +++ b/backend/src/utils.rs @@ -21,6 +21,6 @@ pub fn run_cmd(cmd: &str) -> Result { error!("Command output: {:?}", out); bail!(String::from_utf8(out.stderr)?); } - debug!("Command output: {:?}", out); + // debug!("Command output: {:?}", out); Ok(out) }