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:
Rodolfo Alonso Hernandez 2022-11-10 15:19:00 +01:00 committed by Rodolfo Alonso
parent 1020c6fbf5
commit a069b35570
1 changed files with 4 additions and 1 deletions

View File

@ -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