Flipped log level logic.

This commit is contained in:
Anton Hvornum 2021-05-11 11:41:43 +02:00
parent 20d9858cf6
commit 4b6e312cfa
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ def log(*args, **kwargs):
log("Deprecated level detected in log message, please use new logging.<level> 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

View File

@ -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)
]