diff options
Diffstat (limited to 'src/cli_info.rs')
-rw-r--r-- | src/cli_info.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cli_info.rs b/src/cli_info.rs index aa29b50..91544fd 100644 --- a/src/cli_info.rs +++ b/src/cli_info.rs @@ -5,7 +5,7 @@ use log::info; use crate::constant_strings_paths::CLI_INFO_COMMANDS; use crate::impl_selectable_content; -use crate::log::write_log_line; +use crate::log_line; use crate::utils::is_program_in_path; /// Holds the command line commands we can run and display @@ -45,8 +45,7 @@ impl CliInfo { pub fn execute(&self) -> Result<String> { let args = self.commands[self.index].clone(); info!("execute. {args:?}"); - let log_line = format!("Executed {args:?}"); - write_log_line(log_line); + log_line!("Executed {args:?}"); let child = Command::new(args[0]) .args(&args[1..]) .env("CLICOLOR_FORCE", "1") |