From 556dd012afd4574045e889401e1db58b12c872c9 Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Sun, 22 Oct 2017 08:09:02 +0000 Subject: [PATCH] Last min changes always warrant a recompile... --- util/src/logger.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/src/logger.rs b/util/src/logger.rs index 51d2764b5..424f5790d 100644 --- a/util/src/logger.rs +++ b/util/src/logger.rs @@ -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) { /// 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();