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:
parent
04152081be
commit
77d217069f
@ -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"
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user