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:
Swapnil Kulkarni (coolsvap) 2016-03-11 13:19:54 +05:30
parent 089f1af38b
commit 3e5cc8aa5f
2 changed files with 2 additions and 2 deletions

View File

@ -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(',')]

View File

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