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:
@ -114,7 +114,7 @@ fn get_logger() -> Option<Guard>
|
||||
{
|
||||
let guard: Guard;
|
||||
|
||||
if STATE.load(Ordering::SeqCst) != LoggerStates::Initializing.into()
|
||||
if STATE.load(Ordering::SeqCst) == LoggerStates::Initializing.into()
|
||||
{
|
||||
None
|
||||
}
|
||||
|
Reference in New Issue
Block a user