From 16dcb2edc70b62251d2baef6090cf60b5d3dc7a4 Mon Sep 17 00:00:00 2001 From: Sean Whalen Date: Tue, 9 Oct 2018 20:48:31 -0400 Subject: [PATCH] Fix logging --- parsedmarc/cli.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/parsedmarc/cli.py b/parsedmarc/cli.py index 7be74b5..ee54d89 100644 --- a/parsedmarc/cli.py +++ b/parsedmarc/cli.py @@ -12,11 +12,15 @@ import json from elasticsearch.exceptions import ElasticsearchException -from parsedmarc import logger, IMAPError, get_dmarc_reports_from_inbox, \ +from parsedmarc import IMAPError, get_dmarc_reports_from_inbox, \ parse_report_file, elastic, splunk, save_output, watch_inbox, \ email_results, SMTPError, ParserError, __version__ +logger = logging.getLogger(__name__) +logger.setLevel(logging.WARNING) + + def _main(): """Called when the module is executed""" def process_reports(reports_):