diff --git a/kombu/mixins.py b/kombu/mixins.py index 825d272a..75727130 100644 --- a/kombu/mixins.py +++ b/kombu/mixins.py @@ -21,7 +21,12 @@ from .utils.objects import cached_property __all__ = ('ConsumerMixin', 'ConsumerProducerMixin') logger = get_logger(__name__) -debug, info, warn, error = logger.debug, logger.info, logger.warn, logger.error +debug, info, warn, error = ( + logger.debug, + logger.info, + logger.warning, + logger.error +) W_CONN_LOST = """\ Connection to broker lost, trying to re-establish connection...\ diff --git a/kombu/utils/url.py b/kombu/utils/url.py index 0cae13c9..ea56fe0f 100644 --- a/kombu/utils/url.py +++ b/kombu/utils/url.py @@ -53,7 +53,7 @@ def parse_url(url): query[key] = getattr(ssl, query[key]) else: query[key] = None - logger.warn('Defaulting to insecure SSL behaviour.') + logger.warning('Defaulting to insecure SSL behaviour.') if 'ssl' not in query: query['ssl'] = {}