From dcfbda9c89125bb87eeef4d4df012234ad3086a7 Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Thu, 16 Aug 2018 19:32:03 +0100 Subject: [PATCH] Fix test logger, debug level, no file --- util/src/logger.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/util/src/logger.rs b/util/src/logger.rs index b441ea746..1afaf05d8 100644 --- a/util/src/logger.rs +++ b/util/src/logger.rs @@ -107,8 +107,11 @@ pub fn init_test_logger() { if *was_init_ref.deref() { return; } + let mut logger = LoggingConfig::default(); + logger.log_to_file = false; + logger.stdout_log_level = LogLevel::Debug; let mut config_ref = LOGGING_CONFIG.lock().unwrap(); - *config_ref = LoggingConfig::default(); + *config_ref = logger; *was_init_ref = true; }