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.
This commit is contained in:
Myrddin Dundragon 2016-09-06 11:55:20 -04:00
parent 04152081be
commit 77d217069f
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
[package] [package]
name = "scribe" name = "scribe"
version = "0.5.0" version = "0.5.0"
authors = ["Jason Travis Smith <Jason@CyberMagesLLC.com>"] authors = ["Jason Travis Smith <Myrddin@CyberMagesLLC.com>"]
description = "Handles logging." description = "Handles logging."
license = "" license = ""
repository = "https://gitlab.com/CyberMages/scribe.git" repository = "https://gitlab.com/CyberMages/scribe.git"

View File

@ -114,7 +114,7 @@ fn get_logger() -> Option<Guard>
{ {
let guard: Guard; let guard: Guard;
if STATE.load(Ordering::SeqCst) != LoggerStates::Initializing.into() if STATE.load(Ordering::SeqCst) == LoggerStates::Initializing.into()
{ {
None None
} }