From aa736b01d859533b9380b7a0462c57e19018b333 Mon Sep 17 00:00:00 2001 From: amy Date: Sun, 23 Jan 2022 16:12:32 +0100 Subject: [PATCH] change log message in files.rs --- src/internal/files.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/files.rs b/src/internal/files.rs index 26baf0b..878ad0e 100755 --- a/src/internal/files.rs +++ b/src/internal/files.rs @@ -15,7 +15,7 @@ pub fn create_file(path: &str) { } pub fn append_file(path: &str, content: &str) -> std::io::Result<()> { - log(format!("Appending {} to file {}", content.replace("\n", ""), path)); + log(format!("[ \x1b[2;1;32mOK\x1b[0m ] Append '{}' to file {}", content.replace("\n", ""), path)); let mut file = OpenOptions::new().append(true).open(path)?; file.write_all(content.as_bytes())?; Ok(())