Bump oslo.log to >=5.0.2

This allows us to get rid of an eventlet-related workaround while
setting up the loggin module.

Change-Id: I0fe04671a25a158ccca128e90bde434423a0936d
This commit is contained in:
Cyril Roelandt 2024-10-01 17:21:47 +02:00
parent 4e2b3af5de
commit 10dc9cb62b
2 changed files with 2 additions and 8 deletions

View File

@ -550,13 +550,7 @@ def helper_main():
cfg.CONF(args=sys.argv[1:], project='privsep') cfg.CONF(args=sys.argv[1:], project='privsep')
# note replace_logging call below # note replace_logging call below
try: logging.setup(cfg.CONF, 'privsep', fix_eventlet=False)
logging.setup(cfg.CONF, 'privsep', fix_eventlet=False)
except TypeError:
# NOTE(ralonsoh): in case of using oslo.log<5.0.2, kwarg
# "fix_eventlet" won't be defined. Remove this try clause when oslo.log
# is bumped.
logging.setup(cfg.CONF, 'privsep')
context = importutils.import_class(cfg.CONF.privsep_context) context = importutils.import_class(cfg.CONF.privsep_context)
from oslo_privsep import priv_context # Avoid circular import from oslo_privsep import priv_context # Avoid circular import

View File

@ -1,4 +1,4 @@
oslo.log>=3.36.0 # Apache-2.0 oslo.log>=5.0.2 # Apache-2.0
oslo.i18n>=3.15.3 # Apache-2.0 oslo.i18n>=3.15.3 # Apache-2.0
oslo.config>=5.2.0 # Apache-2.0 oslo.config>=5.2.0 # Apache-2.0
oslo.utils>=3.33.0 # Apache-2.0 oslo.utils>=3.33.0 # Apache-2.0