Commit 0c98815a authored by Gero Müller's avatar Gero Müller
Browse files

remove default log handler in workspace loader

parent d39f30bb
......@@ -297,8 +297,10 @@ def main_loop(fin, fout):
vispa.remote.log = rpyc.async(vispa.remote.connection.root.log)
vispa.remote.send = rpyc.async(vispa.remote.connection.root.send)
exising_handlers = []
try:
logging.getLogger().addHandler(RemoteHandler(vispa.remote.log))
exising_handlers = logging.getLogger().handlers
logging.getLogger().handlers = [RemoteHandler(vispa.remote.log)]
logger.info("connected, serving")
except:
logger.exception("main_loop")
......@@ -317,7 +319,7 @@ def main_loop(fin, fout):
if not vispa.remote.connection.closed:
raise
finally:
logging.getLogger().handlers = []
logging.getLogger().handlers = exising_handlers
vispa.remote.connection.close()
logger.debug("daemon done")
......
Supports Markdown
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