mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-06-02 17:09:43 +00:00
Log-messages were logged with the root logger instead of the parsedmarc logger.
This commit is contained in:
@@ -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
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user