Commit 168e4a78 authored by Marius Gedminas's avatar Marius Gedminas

Avoid DeprecationWarning about logging.Logger.warn()

parent 541da74e
......@@ -145,7 +145,7 @@ class ConnectionPool(AbstractConnectionPool):
n = len(self.all)
limit = self.size
if n > limit:
reporter = logger.warn
reporter = logger.warning
if n > 2 * limit:
reporter = logger.critical
reporter("DB.open() has %s open connections with a pool_size "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment