Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/output.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/output.py')
-rw-r--r--archinstall/lib/output.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/archinstall/lib/output.py b/archinstall/lib/output.py
index ffe00370..fa537dd4 100644
--- a/archinstall/lib/output.py
+++ b/archinstall/lib/output.py
@@ -105,5 +105,6 @@ def log(*args :str, **kwargs :Union[str, int, Dict[str, Union[str, int]]]) -> No
# Finally, print the log unless we skipped it based on level.
# We use sys.stdout.write()+flush() instead of print() to try and
# fix issue #94
- sys.stdout.write(f"{string}\n")
- sys.stdout.flush()
+ if kwargs.get('level', logging.INFO) != logging.DEBUG or storage['arguments'].get('verbose', False):
+ sys.stdout.write(f"{string}\n")
+ sys.stdout.flush()