Set log level on verbose
This commit is contained in:
parent
74c9983114
commit
2a12c62ca3
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Reference in a new issue