diff --git a/zaqar/storage/mongodb/utils.py b/zaqar/storage/mongodb/utils.py index 2e424784d..28392c7f4 100644 --- a/zaqar/storage/mongodb/utils.py +++ b/zaqar/storage/mongodb/utils.py @@ -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)) diff --git a/zaqar/storage/redis/utils.py b/zaqar/storage/redis/utils.py index 01666a423..530ccae44 100644 --- a/zaqar/storage/redis/utils.py +++ b/zaqar/storage/redis/utils.py @@ -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: