DNM Possible fix for LP#1995514
Depends-On: https://review.opendev.org/c/openstack/oslo.log/+/864018 Related-Bug: #1995514 Change-Id: I72798f290223e77d234b1228837dd7bb1bafcc29
This commit is contained in:
parent
1020c6fbf5
commit
a069b35570
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user