Fix module logging

This commit is contained in:
Sean Whalen
2018-10-09 20:35:45 -04:00
parent 8ea0e62bdd
commit 21af33687c
3 changed files with 4 additions and 3 deletions
+4 -1
View File
@@ -12,10 +12,13 @@ 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"""
-1
View File
@@ -9,7 +9,6 @@ from elasticsearch_dsl import connections, Object, Document, Index, Nested, \
InnerDoc, Integer, Text, Boolean, DateRange, Ip, Date
logger = logging.getLogger(__name__)
logger.setLevel(logging.WARNING)
class _PolicyOverride(InnerDoc):
-1
View File
@@ -11,7 +11,6 @@ from parsedmarc import __version__, human_timestamp_to_timestamp
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
logger = logging.getLogger(__name__)
logger.setLevel(logging.WARNING)
class SplunkError(RuntimeError):