From 807ac9129713925d99e7622d64037c46e982cfa5 Mon Sep 17 00:00:00 2001 From: Daniel <daniel@harvey> Date: Wed, 6 May 2020 15:05:29 +0200 Subject: [PATCH] FIX: Replaced deprecated Logger.warn() --- src/caosdb/connection/connection.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/caosdb/connection/connection.py b/src/caosdb/connection/connection.py index 3553c86c..5fbca32e 100644 --- a/src/caosdb/connection/connection.py +++ b/src/caosdb/connection/connection.py @@ -178,10 +178,10 @@ class _DefaultCaosDBServerConnection(CaosDBServerConnection): context.verify_mode = ssl.CERT_REQUIRED if config.get("ssl_insecure"): - _LOGGER.warn("*** Warning! ***\n" - "Insecure SSL mode, certificate will not be checked! " - "Please consider removing the `ssl_insecure` configuration option.\n" - "****************") + _LOGGER.warning("*** Warning! ***\n" + "Insecure SSL mode, certificate will not be checked! " + "Please consider removing the `ssl_insecure` configuration option.\n" + "****************") context.verify_mode = ssl.CERT_NONE if (not context.verify_mode == ssl.CERT_NONE and -- GitLab