From 4b6e312cfa73974304d7b52c25aa7d165e4d61a7 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 11 May 2021 11:41:43 +0200 Subject: Flipped log level logic. --- archinstall/lib/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archinstall/lib') diff --git a/archinstall/lib/output.py b/archinstall/lib/output.py index 06d99778..13e6ce20 100644 --- a/archinstall/lib/output.py +++ b/archinstall/lib/output.py @@ -148,7 +148,7 @@ def log(*args, **kwargs): log("Deprecated level detected in log message, please use new logging. instead for the following log message:", fg="red", level=logging.ERROR, force=True) kwargs['level'] = logging.DEBUG - if kwargs['level'] > storage.get('LOG_LEVEL', logging.INFO) and not 'force' in kwargs: + if kwargs['level'] < storage.get('LOG_LEVEL', logging.INFO) and not 'force' in kwargs: # Level on log message was Debug, but output level is set to Info. # In that case, we'll drop it. return None -- cgit v1.2.3-70-g09d2