Logging #26

Open
leon wants to merge 33 commits from Logging into main
Showing only changes of commit 16a30028f7 - Show all commits

View File

@ -191,6 +191,8 @@ fn log_macro_shared_config() {
.expect("Could not acquire write lock on config!");
take(&mut *config);
config.set_path(PathBuf::from(log_path));
config.set_stdout(false);
config.set_stderr(false);
drop(config);
create_dir_all(PathBuf::from(LOG_DIR.as_str()))
@ -216,6 +218,8 @@ fn log_concurrently_any_order() {
take(&mut *config);
let mut messages = Vec::with_capacity(CONCURRENT_MESSAGE_COUNT);
config.set_path(PathBuf::from(log_path));
config.set_stdout(false);
config.set_stderr(false);
drop(config);
for i in 0..CONCURRENT_MESSAGE_COUNT {
@ -261,6 +265,8 @@ fn log_concurrently_correct_order() {
take(&mut *config);
let mut messages = Vec::with_capacity(CONCURRENT_MESSAGE_COUNT);
config.set_path(PathBuf::from(log_path));
config.set_stdout(false);
config.set_stderr(false);
drop(config);
for i in 0..CONCURRENT_MESSAGE_COUNT {