diff options
| author | Aram Drevekenin <aram@poor.dev> | 2020-11-23 18:01:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-23 18:01:16 +0100 |
| commit | f88abe6ad86da27695dac82ea8ad2e1c6fd4cc9e (patch) | |
| tree | fddfea76ffc9bba8ba735e0d120dfb62b94f33e6 /src/utils | |
| parent | fix(layout): total layout percent 100 validation (#57) (diff) | |
| download | sl0ppij-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.rs | 5 |
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) |
