From 2a12c62ca3c5425ea1e52a1adf5cdfc3b573c8a7 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 29 Mar 2017 22:19:07 +0100 Subject: [PATCH] Set log level on verbose --- md_pdf/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/md_pdf/cli.py b/md_pdf/cli.py index 60b8d3d..8ff13d8 100644 --- a/md_pdf/cli.py +++ b/md_pdf/cli.py @@ -7,11 +7,11 @@ from md_pdf.config.validate import validate_config from md_pdf.csl import check_csl, download_csl FORMAT = "[%(levelname)s]: %(message)s" -logging.basicConfig(format=FORMAT, level=logging.DEBUG) def cli(): args = parse_args() + logging.basicConfig(format=FORMAT, level=logging.INFO if args.verbose else logging.NOTSET) try: if args.update_csl: download_csl()