installer.log() should not be a property.

This commit is contained in:
Anton Hvornum 2020-11-04 23:39:55 +00:00
parent baf2ef1128
commit fb10e94c0a
1 changed files with 2 additions and 3 deletions

View File

@ -52,8 +52,7 @@ class Installer():
self.partition = partition
self.boot_partition = boot_partition
@property
def log(self, message, *args, level=LOG_LEVELS.Debug, file=None, **kwargs):
def log(self, *args, level=LOG_LEVELS.Debug, file=None, **kwargs):
if not file:
if 'logfile' not in storage:
log_root = os.path.join(os.path.expanduser('~/'), '.cache/archinstall')
@ -64,7 +63,7 @@ class Installer():
file = storage['logfile']
log(message, *args, level=level, file=file, **kwargs)
log(*args, level=level, file=file, **kwargs)
def __enter__(self, *args, **kwargs):
self.partition.mount(self.mountpoint)