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 +- examples/guided.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 diff --git a/examples/guided.py b/examples/guided.py index 8e267df9..06b6bc13 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -51,7 +51,7 @@ def ask_user_questions(): else: archinstall.arguments['harddrives'] = [ archinstall.BlockDevice(BlockDev) for BlockDev in archinstall.generic_multi_select(archinstall.all_disks(), - text="Select one or more harddrives to use and configure (leave blank to skip this step): " + text="Select one or more harddrives to use and configure (leave blank to skip this step): ", allow_empty=True) ] -- cgit v1.2.3-70-g09d2