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:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-07-25 19:19:14 +1000
committerGitHub <noreply@github.com>2023-07-25 11:19:14 +0200
commita548d7df70102252a557214edc74b77f4859f031 (patch)
tree34fafdea7186d97bcb3043945ee259aa0565eae0 /archinstall/lib/output.py
parent439bb5428bb6a6f512f695a83ee6b3b8f6537598 (diff)
Fix 1916 (#1920)
* Do not stdout when menu is active * Handle missing libfido2 gracefully * Update --------- Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'archinstall/lib/output.py')
-rw-r--r--archinstall/lib/output.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/archinstall/lib/output.py b/archinstall/lib/output.py
index d1c95ec5..9f2a2ae3 100644
--- a/archinstall/lib/output.py
+++ b/archinstall/lib/output.py
@@ -318,9 +318,11 @@ def log(
Journald.log(text, level=level)
- # 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
- if level != logging.DEBUG or storage.get('arguments', {}).get('verbose', False):
- sys.stdout.write(f"{text}\n")
- sys.stdout.flush()
+ from .menu import Menu
+ if not Menu.is_menu_active():
+ # 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
+ if level != logging.DEBUG or storage.get('arguments', {}).get('verbose', False):
+ sys.stdout.write(f"{text}\n")
+ sys.stdout.flush()