Skip to content
Snippets Groups Projects
Commit 45772b04 authored by Anael Beutot's avatar Anael Beutot
Browse files

Set debug on pyev loop according to config

parent 70b81309
No related branches found
No related tags found
No related merge requests found
......@@ -196,8 +196,13 @@ class RPCStartHandler(Thread):
class MainLoop(object):
def __init__(self, config_path):
self.evloop = pyev.Loop(debug=True)
self.config_path = config_path
# load config variables
self.config = NodeConfigParser(self.config_path)
# configure logging
configure_logging(self.config.logging_level)
self.evloop = pyev.Loop(debug=self.config.debug)
# set signal watchers
self.signals = {
......@@ -212,12 +217,6 @@ class MainLoop(object):
self.evloop.signal(signal_, cb),
) for signal_, cb in self.signals.iteritems())
# load config variables
self.config = NodeConfigParser(self.config_path)
# configure logging
configure_logging(self.config.logging_level)
# rpc connection
self.rpc_con = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment