From 189bbcce191446be6e64b00e10b230924bb7e572 Mon Sep 17 00:00:00 2001 From: nicoco Date: Mon, 3 Oct 2022 10:12:06 +0200 Subject: logger: remove NullHandler for the "slixmpp" handler This does not seem to accomplish anything besides hiding the "using the slow, pure python stringprep" warning, unless you import logging and add another handler before to the "slixmpp" logger *BEFORE* importing slixmpp. --- slixmpp/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/slixmpp/__init__.py b/slixmpp/__init__.py index a4796d78..5841cdf7 100644 --- a/slixmpp/__init__.py +++ b/slixmpp/__init__.py @@ -5,7 +5,6 @@ # See the file LICENSE for copying permission. import logging from os import getenv -logging.getLogger(__name__).addHandler(logging.NullHandler()) # Use defusedxml if wanted # Since enabling it can have adverse consequences for the programs using -- cgit v1.2.3