Issue in archinstall.output.log() when the log file output is omitted. Now properly checks if a logfile is given, otherwise it ignores it.
This commit is contained in:
parent
82e0d20738
commit
07e6e91f3c
|
|
@ -89,7 +89,7 @@ def log(*args, **kwargs):
|
|||
if type(kwargs['file']) is str:
|
||||
with open(kwargs['file'], 'a') as log_file:
|
||||
log_file.write(f"{orig_string}\n")
|
||||
else:
|
||||
elif kwargs['file']:
|
||||
kwargs['file'].write(f"{orig_string}\n")
|
||||
|
||||
# If we assigned a level, try to log it to systemd's journald.
|
||||
|
|
|
|||
Loading…
Reference in New Issue