Replace deprecated LOG.warn with LOG.warning
LOG.warn is deprecated. It still used in a few places. Updated to non-deprecated LOG.warning. Change-Id: I5220749e651a547c788722a3709124fe217e500c Closes-Bug:#1508442
This commit is contained in:
parent
089f1af38b
commit
3e5cc8aa5f
|
@ -137,6 +137,6 @@ class GceapiKeystoneContext(wsgi.Middleware):
|
|||
# Fallback to deprecated role header:
|
||||
roles = req.headers.get('X_ROLE', '')
|
||||
if roles:
|
||||
LOG.warn(_("Sourcing roles from deprecated X-Role HTTP "
|
||||
LOG.warning(_("Sourcing roles from deprecated X-Role HTTP "
|
||||
"header"))
|
||||
return [r.strip() for r in roles.split(',')]
|
||||
|
|
|
@ -60,7 +60,7 @@ class RequestContext(object):
|
|||
because they possibly came in from older rpc messages.
|
||||
"""
|
||||
if kwargs:
|
||||
LOG.warn(_('Arguments dropped when creating context: %s') %
|
||||
LOG.warning(_('Arguments dropped when creating context: %s') %
|
||||
str(kwargs))
|
||||
|
||||
self.user_id = user_id
|
||||
|
|
Loading…
Reference in New Issue