Remove '/var/log/qmemman.log' backward compatiblity

This commit is contained in:
donoban 2021-02-11 23:57:00 +01:00
parent e1991d5c33
commit 9571765b4c
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -35,7 +35,6 @@ import qubes.qmemman.algo
import qubes.utils import qubes.utils
SOCK_PATH = '/var/run/qubes/qmemman.sock' SOCK_PATH = '/var/run/qubes/qmemman.sock'
LOG_PATH = '/var/log/qubes/qmemman.log'
system_state = qubes.qmemman.SystemState() system_state = qubes.qmemman.SystemState()
global_lock = threading.Lock() global_lock = threading.Lock()
@ -243,12 +242,6 @@ def main():
logging.Formatter('%(name)s[%(process)d]: %(message)s')) logging.Formatter('%(name)s[%(process)d]: %(message)s'))
logging.root.addHandler(ha_syslog) logging.root.addHandler(ha_syslog)
# leave log for backwards compatibility
ha_file = logging.FileHandler(LOG_PATH)
ha_file.setFormatter(
logging.Formatter('%(asctime)s %(name)s[%(process)d]: %(message)s'))
logging.root.addHandler(ha_file)
if args.foreground: if args.foreground:
ha_stderr = logging.StreamHandler(sys.stderr) ha_stderr = logging.StreamHandler(sys.stderr)
ha_file.setFormatter( ha_file.setFormatter(