From b3a5fa70b0e97d7eda71f3f42d34a8fb08363f87 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sat, 9 Jun 2018 20:45:07 +0100 Subject: [PATCH] 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. --- mitogen/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mitogen/core.py b/mitogen/core.py index 9c37f16d..023b68ca 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -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,