Commit 6b0bf3d3 authored by Anael Beutot's avatar Anael Beutot Committed by Antoine Millet
Browse files

Always run evloop in debug mode as we don't want any bug to be hidden

parent 3fc8ede8
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -374,8 +374,9 @@ class MainLoop(object):
        # configure logging
        self.configure_logging()

        # always run evloop as debug, we don't want exceptions to be mute
        self.evloop = pyev.default_loop(flags=pyev.EVFLAG_SIGNALFD,
                                        debug=self.config.debug)
                                        debug=True)

        # keeps track of libev loop thread, create threading queue and an async
        # watcher for performing work in libev thread from external thread
@@ -565,7 +566,11 @@ class MainLoop(object):
        logger.debug('About to connect')
        self.connect.start()
        logger.debug('About to start ev_loop')
        try:
            self.evloop.start()
        except:
            logger.exception('Unexpected exception while running main loop')
            sys.exit(1)

    def stop(self, watcher=None, revents=None):
        logger.info('Exiting node...')