mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 08:51:08 +03:00
Last min changes always warrant a recompile...
This commit is contained in:
parent
f1488f9529
commit
556dd012af
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
|||
//! Logging wrapper to be used throughout all crates in the workspace
|
||||
use std::fs::OpenOptions;
|
||||
use std::sync::Mutex;
|
||||
use std::ops::Deref;
|
||||
use slog::{Logger, Drain, Level, LevelFilter, Duplicate, Discard};
|
||||
use slog_term;
|
||||
use slog_async;
|
||||
|
@ -93,7 +94,7 @@ pub fn init_logger(config: Option<LoggingConfig>) {
|
|||
/// Initializes the logger for unit and integration tests
|
||||
pub fn init_test_logger() {
|
||||
let mut was_init_ref = WAS_INIT.lock().unwrap();
|
||||
if was_init_ref {
|
||||
if *was_init_ref.deref() {
|
||||
return;
|
||||
}
|
||||
let mut config_ref = LOGGING_CONFIG.lock().unwrap();
|
||||
|
|
Loading…
Reference in a new issue