mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-04-04 12:48:53 +00:00
Modifying some log-levels to INFO
This commit is contained in:
@@ -943,7 +943,7 @@ def get_dmarc_reports_from_mbox(input_, nameservers=None, dns_timeout=2.0,
|
||||
input_))
|
||||
for i in range(len(message_keys)):
|
||||
message_key = message_keys[i]
|
||||
logger.debug("Processing message {0} of {1}".format(
|
||||
logger.info("Processing message {0} of {1}".format(
|
||||
i+1, total_messages
|
||||
))
|
||||
msg_content = mbox.get_string(message_key)
|
||||
@@ -1071,7 +1071,7 @@ def get_dmarc_reports_from_inbox(connection=None,
|
||||
reports_folder))
|
||||
for i in range(len(messages)):
|
||||
msg_uid = messages[i]
|
||||
logger.debug("Processing message {0} of {1}: UID {2}".format(
|
||||
logger.info("Processing message {0} of {1}: UID {2}".format(
|
||||
i+1, total_messages, msg_uid
|
||||
|
||||
))
|
||||
|
||||
@@ -490,6 +490,8 @@ def _main():
|
||||
logger.error("You must supply input files, or an IMAP configuration")
|
||||
exit(1)
|
||||
|
||||
logger.info("Starting dmarcparse")
|
||||
|
||||
if opts.save_aggregate or opts.save_forensic:
|
||||
try:
|
||||
if opts.elasticsearch_hosts:
|
||||
|
||||
@@ -295,7 +295,7 @@ def save_aggregate_report_to_elasticsearch(aggregate_report,
|
||||
Raises:
|
||||
AlreadySaved
|
||||
"""
|
||||
logger.debug("Saving aggregate report to Elasticsearch")
|
||||
logger.info("Saving aggregate report to Elasticsearch")
|
||||
aggregate_report = aggregate_report.copy()
|
||||
metadata = aggregate_report["report_metadata"]
|
||||
org_name = metadata["org_name"]
|
||||
@@ -423,7 +423,7 @@ def save_forensic_report_to_elasticsearch(forensic_report,
|
||||
AlreadySaved
|
||||
|
||||
"""
|
||||
logger.debug("Saving forensic report to Elasticsearch")
|
||||
logger.info("Saving forensic report to Elasticsearch")
|
||||
forensic_report = forensic_report.copy()
|
||||
sample_date = None
|
||||
if forensic_report["parsed_sample"]["date"] is not None:
|
||||
|
||||
Reference in New Issue
Block a user