Commit 107ca7df authored by Julien Muchembled's avatar Julien Muchembled

neoctl: make -l option log everything on disk automatically

parent 9d26bb51
......@@ -33,6 +33,12 @@ def main(args=None):
else:
address = ('127.0.0.1', 9999)
if options.logfile:
# Contrary to daemons, we log everything to disk automatically
# because a user using -l option here:
# - is certainly debugging an issue and wants everything,
# - would not have to time to send SIGRTMIN before neoctl exits.
logging.backlog(None)
logging.setup(options.logfile)
from neo.neoctl.app import Application
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment