core: copy debug setting to child's Router too.

core.Router doesn't pay attention to this attribute, but after
upgrade_router() has been called, the new parent.Router will.
pull/262/head
David Wilson 7 years ago
parent 64b60be50c
commit b3a5fa70b0

@ -1707,6 +1707,7 @@ class ExternalContext(object):
enable_profiling()
self.broker = Broker()
self.router = Router(self.broker)
self.router.debug = self.config.get('debug', False)
self.router.undirectional = self.config['unidirectional']
self.router.add_handler(
fn=self._on_shutdown_msg,

Loading…
Cancel
Save