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: I68f4ccdd3cc5923ef1db40a80857a915e4e583e1
Closes-Bug:#1508442
This commit is contained in:
Swapnil Kulkarni (coolsvap) 2016-01-05 12:49:39 +05:30
parent 07eccf298c
commit baf8dbdafd
1 changed files with 2 additions and 2 deletions

View File

@ -426,8 +426,8 @@ class MongoApi(object):
'<%(c_name)s>, remove index <%(indx_name)s> '
'first to make updated mongo_ttl_seconds value '
'to be effective')
LOG.warn(msg, {'c_name': coll_name,
'indx_name': indx_name})
LOG.warning(msg, {'c_name': coll_name,
'indx_name': indx_name})
def get(self, key):
criteria = {'_id': key}