aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2020-11-23 18:01:16 +0100
committerGitHub <noreply@github.com>2020-11-23 18:01:16 +0100
commitf88abe6ad86da27695dac82ea8ad2e1c6fd4cc9e (patch)
treefddfea76ffc9bba8ba735e0d120dfb62b94f33e6 /src/utils
parentfix(layout): total layout percent 100 validation (#57) (diff)
downloadsl0ppij-f88abe6ad86da27695dac82ea8ad2e1c6fd4cc9e.tar.gz
sl0ppij-f88abe6ad86da27695dac82ea8ad2e1c6fd4cc9e.tar.xz
sl0ppij-f88abe6ad86da27695dac82ea8ad2e1c6fd4cc9e.zip
fix(compatibility): various htop issues (#66)
* fix(compatibility): various htop issues * style(format): make rustfmt happy * fix(logging): do not delete log dir on startup * fix(tests): update htop with command toggle * chore(ci): reduce test concurrency to 1
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/logging.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/logging.rs b/src/utils/logging.rs
index 38ac57c4..031813ed 100644
--- a/src/utils/logging.rs
+++ b/src/utils/logging.rs
@@ -7,7 +7,12 @@ use std::{
use crate::utils::consts::{MOSAIC_TMP_LOG_DIR, MOSAIC_TMP_LOG_FILE};
+fn atomic_create_file(file_name: &str) {
+ let _ = fs::OpenOptions::new().create(true).open(file_name);
+}
+
pub fn debug_log_to_file(message: String) -> io::Result<()> {
+ atomic_create_file(MOSAIC_TMP_LOG_FILE);
let mut file = fs::OpenOptions::new()
.append(true)
.create(true)