Modifying some log-levels to INFO

This commit is contained in:
Ola Thoresen
2021-01-21 08:24:44 +01:00
parent b43a622f9e
commit 0e2636225e
3 changed files with 6 additions and 4 deletions

View File

@@ -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
))

View File

@@ -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:

View File

@@ -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: