From 1d052902663a5c0dc5a2d14a5773e0a27c48a702 Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Wed, 24 Apr 2024 21:15:56 -0400 Subject: [PATCH] chore: Remove debug logs from utils --- utils/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/utils/src/lib.rs b/utils/src/lib.rs index a18f137..2900d0d 100644 --- a/utils/src/lib.rs +++ b/utils/src/lib.rs @@ -6,7 +6,7 @@ use std::{ffi::OsStr, io::Write, path::PathBuf, process::Command, thread, time:: use anyhow::{anyhow, Result}; use format_serde_error::SerdeError; -use log::{debug, trace}; +use log::trace; pub use command_output::*; @@ -16,7 +16,6 @@ pub use command_output::*; /// Will error if the command doesn't exist. pub fn check_command_exists(command: &str) -> Result<()> { trace!("check_command_exists({command})"); - debug!("Checking if {command} exists"); trace!("which {command}"); if Command::new("which") @@ -25,7 +24,7 @@ pub fn check_command_exists(command: &str) -> Result<()> { .status .success() { - debug!("Command {command} does exist"); + trace!("Command {command} does exist"); Ok(()) } else { Err(anyhow!( @@ -41,7 +40,6 @@ pub fn check_command_exists(command: &str) -> Result<()> { pub fn append_to_file + AsRef>(file_path: &T, content: &str) -> Result<()> { let file_path: PathBuf = file_path.into(); trace!("append_to_file({}, {content})", file_path.display()); - debug!("Appending {content} to {}", file_path.display()); let mut file = std::fs::OpenOptions::new() .append(true)