From 77d217069ffb2fd6f7f73ed088b6dd5519a215c3 Mon Sep 17 00:00:00 2001 From: Jason Travis Smith Date: Tue, 6 Sep 2016 11:55:20 -0400 Subject: [PATCH] Get logger now returns the logger properly. It was incorrectly testing the state and would only return a logger while it was in the initializing state. This is the opposite of what was desired. --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0c42172..2d4a429 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "scribe" version = "0.5.0" -authors = ["Jason Travis Smith "] +authors = ["Jason Travis Smith "] description = "Handles logging." license = "" repository = "https://gitlab.com/CyberMages/scribe.git" diff --git a/src/lib.rs b/src/lib.rs index c27d0df..f66b915 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -114,7 +114,7 @@ fn get_logger() -> Option { let guard: Guard; - if STATE.load(Ordering::SeqCst) != LoggerStates::Initializing.into() + if STATE.load(Ordering::SeqCst) == LoggerStates::Initializing.into() { None }