Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/output.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/archinstall/lib/output.py b/archinstall/lib/output.py
index e18a0cd2..8331a04c 100644
--- a/archinstall/lib/output.py
+++ b/archinstall/lib/output.py
@@ -80,6 +80,9 @@ def log(*args, **kwargs):
kwargs = {'bg' : 'black', 'fg': 'white', **kwargs}
string = stylize_output(string, **kwargs)
+ if (logfile := storage.get('logfile', None)) and 'file' not in kwargs:
+ kwargs['file'] = logfile
+
# Log to a file output unless specifically told to suppress this feature.
# (level has no effect on the log file, everything will be written there)
if 'file' in kwargs and ('suppress' not in kwargs or kwargs['suppress'] == False):