Skip to content

Commit

Permalink
Use correct logger method ("warning" instead of "warn")
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Mar 25, 2021
1 parent 474d6fa commit 0df889f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crate/client/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,8 @@ def _get_server(self):
(ts, server, message))
else:
self._active_servers.append(server)
logger.warn("Restored server %s into active pool",
server)
logger.warning("Restored server %s into active pool",
server)

# if none is old enough, use oldest
if not self._active_servers:
Expand Down

0 comments on commit 0df889f

Please sign in to comment.