From 3e5cc8aa5f3283687b3b8195f68b692e0434a3cb Mon Sep 17 00:00:00 2001 From: "Swapnil Kulkarni (coolsvap)" Date: Fri, 11 Mar 2016 13:19:54 +0530 Subject: [PATCH] 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 --- gceapi/auth.py | 2 +- gceapi/context.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gceapi/auth.py b/gceapi/auth.py index 861b6e5..24dcc9c 100644 --- a/gceapi/auth.py +++ b/gceapi/auth.py @@ -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(',')] diff --git a/gceapi/context.py b/gceapi/context.py index fa9fba5..bf09ff8 100644 --- a/gceapi/context.py +++ b/gceapi/context.py @@ -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