diff --git a/qubes/log.py b/qubes/log.py index 8da8b12e..3b82a69f 100644 --- a/qubes/log.py +++ b/qubes/log.py @@ -125,6 +125,8 @@ def get_vm_logger(vmname): ''' logger = logging.getLogger('vm.' + vmname) + if logger.handlers: + return logger handler = logging.FileHandler( os.path.join(LOGPATH, 'vm-{}.log'.format(vmname))) handler.setFormatter(formatter_log)