diff --git a/oslo_privsep/daemon.py b/oslo_privsep/daemon.py index 799f493..0fd91c3 100644 --- a/oslo_privsep/daemon.py +++ b/oslo_privsep/daemon.py @@ -551,7 +551,10 @@ def helper_main(): logging.register_options(cfg.CONF) cfg.CONF(args=sys.argv[1:], project='privsep') - logging.setup(cfg.CONF, 'privsep') # note replace_logging call below + + from unittest import mock + with mock.patch.object(logging, '_fix_eventlet_logging'): + logging.setup(cfg.CONF, 'privsep') # note replace_logging call below context = importutils.import_class(cfg.CONF.privsep_context) from oslo_privsep import priv_context # Avoid circular import