summaryrefslogtreecommitdiffstats
path: root/src/opener.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-09-26 10:23:43 +0200
committerqkzk <qu3nt1n@gmail.com>2023-09-26 10:23:43 +0200
commit35c9e0877578d36c5ba8b6da7fa34efe85b40a67 (patch)
treecdaa54b38692d87b1eae565d9e8163def6a45abf /src/opener.rs
parent7f36af489ab82324b5a11b89e8a5ace3b3409bb3 (diff)
use memory to read & write last action log line
Diffstat (limited to 'src/opener.rs')
-rw-r--r--src/opener.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/opener.rs b/src/opener.rs
index f91e0fc..fe02fba 100644
--- a/src/opener.rs
+++ b/src/opener.rs
@@ -16,6 +16,7 @@ use crate::constant_strings_paths::{
};
use crate::decompress::{decompress_gz, decompress_xz, decompress_zip};
use crate::fileinfo::extract_extension;
+use crate::log::write_log_line;
fn find_it<P>(exe_name: P) -> Option<PathBuf>
where
@@ -393,7 +394,8 @@ pub fn execute_in_child<S: AsRef<std::ffi::OsStr> + fmt::Debug>(
args: &[&str],
) -> Result<std::process::Child> {
info!("execute_in_child. executable: {exe:?}, arguments: {args:?}");
- info!(target: "special", "Execute: {exe:?}, arguments: {args:?}");
+ let log_line = format!("Execute: {exe:?}, arguments: {args:?}");
+ write_log_line(log_line);
Ok(Command::new(exe).args(args).spawn()?)
}