Fix test logger, debug level, no file

This commit is contained in:
Ignotus Peverell 2018-08-16 19:32:03 +01:00
parent 779921f71a
commit dcfbda9c89
No known key found for this signature in database
GPG key ID: 99CD25F39F8F8211

View file

@ -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;
}