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: Id321f741793b3f471d0cb22988385c4b083a2353
Partial-Bug:#1508442
This commit is contained in:
Swapnil Kulkarni (coolsvap) 2016-01-04 21:44:32 +05:30
parent 0c5a4fbe5a
commit 545b686845
2 changed files with 4 additions and 4 deletions

View File

@ -287,8 +287,8 @@ def retries_on_autoreconnect(func):
break
except errors.AutoReconnect as ex:
LOG.warn(_(u'Caught AutoReconnect, retrying the '
'call to {0}').format(func))
LOG.warning(_(u'Caught AutoReconnect, retrying the '
'call to {0}').format(func))
last_ex = ex
time.sleep(sleep_sec * (2 ** attempt))

View File

@ -210,8 +210,8 @@ def retries_on_connection_error(func):
# MasterNotFoundError.
ex = sys.exc_info()[1]
LOG.warn(_(u'Caught ConnectionError, retrying the '
'call to {0}').format(func))
LOG.warning(_(u'Caught ConnectionError, retrying the '
'call to {0}').format(func))
time.sleep(sleep_sec * (2 ** attempt))
else: