From 357905bb68ad5907096ccf8ae8b9b5638dbfee5e Mon Sep 17 00:00:00 2001 From: Scott Kitterman Date: Fri, 12 Apr 2019 21:45:31 -0400 Subject: [PATCH] Fix debugLevel for config._readConfigFile --- dkimpy_milter/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dkimpy_milter/config.py b/dkimpy_milter/config.py index 3e2c736..b4c5bc5 100644 --- a/dkimpy_milter/config.py +++ b/dkimpy_milter/config.py @@ -309,7 +309,9 @@ def _readConfigFile(path, configData=None, configGlobal={}): dictionary of name/value pairs based on configData and the values read from path.''' - debugLevel = configGlobal.get('debugLevel', 0) + # No config file data is available yet, so to debug _readConfigFile, set + # the value here. + debugLevel = 0 if debugLevel >= 5: syslog.syslog('readConfigFile: Loading "%s"' % path) if configData is None: