summaryrefslogtreecommitdiffstats
path: root/src/shell_menu.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-11-01 20:37:37 +0100
committerqkzk <qu3nt1n@gmail.com>2023-11-01 20:37:37 +0100
commit97af82a5364fce6918b76bb600a4da8b9af189ab (patch)
treed1d0ee183a581aab4b9ba363c78c60b28c0df259 /src/shell_menu.rs
parent1e299835cc7a29a8d204da48ad1db5803e500656 (diff)
use macro to log line
Diffstat (limited to 'src/shell_menu.rs')
-rw-r--r--src/shell_menu.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/shell_menu.rs b/src/shell_menu.rs
index 05fed46..36d17ba 100644
--- a/src/shell_menu.rs
+++ b/src/shell_menu.rs
@@ -1,7 +1,7 @@
use anyhow::{Context, Result};
use crate::impl_selectable_content;
-use crate::log::write_log_line;
+use crate::log_line;
use crate::opener::{execute_in_child_without_output, execute_in_child_without_output_with_path};
use crate::status::Status;
use crate::utils::is_program_in_path;
@@ -59,8 +59,7 @@ impl ShellMenu {
} else {
Self::simple(status, name.as_str())?
};
- let log_line = format!("Executed {name}");
- write_log_line(log_line);
+ log_line!("Executed {name}");
Ok(())
}