Log-messages were logged with the root logger instead of the parsedmarc logger.

This commit is contained in:
Dominik Bermühler
2021-11-26 10:29:12 +01:00
parent 6d689ca8f5
commit 25b96aa4c0
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1420,7 +1420,7 @@ def email_results(results, host, mail_from, mail_to,
attachment_filename (str): Override the default attachment filename
message (str: Override the default plain text body
"""
logging.debug("Emailing report to: {0}".format(",".join(mail_to)))
logger.debug("Emailing report to: {0}".format(",".join(mail_to)))
date_string = datetime.now().strftime("%Y-%m-%d")
if attachment_filename:
if not attachment_filename.lower().endswith(".zip"):
+4 -4
View File
@@ -293,10 +293,10 @@ def get_ip_address_country(ip_address):
if db_path is None:
db_path = os.path.join(tempdir, "GeoLite2-Country.mmdb")
if not os.path.exists(db_path):
logging.warning("GeoLite2-Country.mmdb is missing. "
"Please follow the instructions at "
"https://dev.maxmind.com/geoip/geoipupdate/ "
"to get the latest version.")
logger.warning("GeoLite2-Country.mmdb is missing. "
"Please follow the instructions at "
"https://dev.maxmind.com/geoip/geoipupdate/ "
"to get the latest version.")
return None
else:
db_age = datetime.now() - datetime.fromtimestamp(