diff --git a/elasticsearch/client/__init__.py b/elasticsearch/client/__init__.py index bf840693..abc9cd8c 100644 --- a/elasticsearch/client/__init__.py +++ b/elasticsearch/client/__init__.py @@ -32,7 +32,7 @@ def _normalize_hosts(hosts): host = host.strip('/') # remove schema information if '://' in host: - logger.warn( + logger.warning( "List of nodes should not include schema information (http://): %r.", host )