Change default logging level to WARNING

This commit is contained in:
Sean Whalen
2018-10-09 10:55:40 -04:00
parent 20433cd2b6
commit e2ec3bc2da
3 changed files with 4 additions and 7 deletions

View File

@@ -4,7 +4,7 @@
- Save each aggregate report record as a separate Splunk event
- Fix IAMP delete action
- Suppress Splunk SSL validation warnings
- Change default logging level to `INFO`
- Change default logging level to `WARNING`
4.1.9

View File

@@ -47,7 +47,7 @@ import mailparser
__version__ = "4.2.0"
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
logger.setLevel(logging.WARNING)
feedback_report_regex = re.compile(r"^([\w\-]+): (.+)$", re.MULTILINE)
xml_header_regex = re.compile(r"^<\?xml .*$", re.MULTILINE)

View File

@@ -168,12 +168,9 @@ def _main():
args = arg_parser.parse_args()
logging.basicConfig(level=logging.INFO)
logger.setLevel(logging.INFO)
logging.basicConfig(level=logging.WARNING)
logger.setLevel(logging.WARNING)
if args.silent:
logging.basicConfig(level=logging.WARNING)
logger.setLevel(logging.WARNING)
if args.debug:
logging.basicConfig(level=logging.DEBUG)
logger.setLevel(logging.DEBUG)