Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/installer.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-01-24 22:57:16 +0100
committerAnton Hvornum <anton@hvornum.se>2021-01-24 22:57:16 +0100
commit828a09b9c8750dfb582ccd12d79fa7faa4512415 (patch)
tree4102b3ee0b9a737fd4f3f20cef2e64bf5fd2ab69 /archinstall/lib/installer.py
parentf31d5e34cdfe9594678316dc100d8c381aac1f43 (diff)
Simpligied installer.log() to wrap output.log() with it's changes.
Diffstat (limited to 'archinstall/lib/installer.py')
-rw-r--r--archinstall/lib/installer.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 025c15cb..1218b840 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -41,7 +41,6 @@ class Installer():
self.init_time = time.strftime('%Y-%m-%d_%H-%M-%S')
self.milliseconds = int(str(time.time()).split('.')[1])
-
if logdir:
storage['LOG_PATH'] = logdir
if logfile:
@@ -60,16 +59,10 @@ class Installer():
self.boot_partition = boot_partition
def log(self, *args, level=LOG_LEVELS.Debug, **kwargs):
- if not file:
- if 'logfile' not in storage:
- log_root = os.path.join(os.path.expanduser('~/'), '.cache/archinstall')
- if not os.path.isdir(log_root):
- os.makedirs(log_root)
-
- storage['logfile'] = f"{log_root}/install-session_{self.init_time}.{self.milliseconds}.log"
-
- file = storage['logfile']
-
+ """
+ installer.log() wraps output.log() mainly to set a default log-level for this install session.
+ Any manual override can be done per log() call.
+ """
log(*args, level=level, **kwargs)
def __enter__(self, *args, **kwargs):