mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-20 19:11:08 +03:00
Fix test logger, debug level, no file
This commit is contained in:
parent
779921f71a
commit
dcfbda9c89
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue