From 826b2ca273105345d8429d55b625ba791a0a8361 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Mon, 7 Jun 2021 13:36:13 -0400 Subject: Shuffle DKIM logging code around a bit PyCharm is unhappy with PEP conformance, so shuffle things around a bit to satisfy it. Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/b4/__init__.py b/b4/__init__.py index 9721e22..2ab2d4b 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -45,7 +45,6 @@ except ModuleNotFoundError: __VERSION__ = '0.8-dev' -logger = logging.getLogger('b4') def _dkim_log_filter(record): # Hide all dkim logging output in normal operation by setting the level to @@ -55,6 +54,9 @@ def _dkim_log_filter(record): record.levelname = 'DEBUG' record.msg = 'DKIM: ' + record.msg return True + + +logger = logging.getLogger('b4') dkimlogger = logger.getChild('dkim') dkimlogger.addFilter(_dkim_log_filter) -- cgit v1.2.3