Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-05-11 11:41:43 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2021-05-11 11:41:43 +0200
commit4b6e312cfa73974304d7b52c25aa7d165e4d61a7 (patch)
treebdbdb5eedcb9dfff241ce1420b495e99e3fa194e
parent20d9858cf608047aeb4f7d2511e2163c04f921de (diff)
Flipped log level logic.
-rw-r--r--archinstall/lib/output.py2
-rw-r--r--examples/guided.py2
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.<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
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)
]