Skip to content
Snippets Groups Projects
Commit a238915b authored by Radko Krkoš's avatar Radko Krkoš Committed by Pavel Kácha
Browse files

Server: Replace undocumented logging.warn() with logging.warning()

* The warn() variant was never documented and was deprecated in Py3.3.
* Correct variant warning() worked in all Python versions since logging
  module inclusion.

Details: https://bugs.python.org/issue13235



Signed-off-by: default avatarPavel Kácha <ph@cesnet.cz>
parent 5f2e50a0
No related branches found
No related tags found
No related merge requests found
......@@ -605,7 +605,7 @@ class MySQL(ObjectBase):
with attempt as db:
rows = db.query("".join(query), params).fetchall()
if len(rows) > 1:
self.log.warn(
self.log.warning(
"get_client_by_name: query returned more than one result (cert_names = %s, name = %s, secret = %s): %s" % (
cert_names, name, secret, ", ".join([str(Client(**row)) for row in rows])))
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment