Merge "Changing LOG.warn to LOG.warning"
This commit is contained in:
commit
c35eba83b3
@ -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))
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user