qmemman: do not close stdout/stderr in daemon mode
Allow exceptions to be logged to syslog/journald
This commit is contained in:
parent
ca41ca66cd
commit
46177c7c9f
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user