qmemman: do not close stdout/stderr in daemon mode

Allow exceptions to be logged to syslog/journald
This commit is contained in:
Marek Marczykowski-Górecki 2018-01-18 16:50:24 +01:00
parent ca41ca66cd
commit 46177c7c9f
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -242,10 +242,6 @@ def main():
ha_file.setFormatter( ha_file.setFormatter(
logging.Formatter('%(asctime)s %(name)s[%(process)d]: %(message)s')) logging.Formatter('%(asctime)s %(name)s[%(process)d]: %(message)s'))
logging.root.addHandler(ha_stderr) logging.root.addHandler(ha_stderr)
else:
# close io
sys.stdout.close()
sys.stderr.close()
sys.stdin.close() sys.stdin.close()