From 0095e6804c9f51939910f4106dd0f87d3c3459cf Mon Sep 17 00:00:00 2001 From: Leo VIALLON-GALINIER Date: Sat, 26 May 2018 09:37:23 +0200 Subject: [PATCH] fix bug on logger --- pdfembanner | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdfembanner b/pdfembanner index 972b9cf..3155a94 100755 --- a/pdfembanner +++ b/pdfembanner @@ -36,7 +36,7 @@ formatter = logging.Formatter('%(levelname)s :: %(message)s') console_handler.setFormatter(formatter) logger.addHandler(console_handler) -if(args.verbose>=2): +if(args.verbose is not None and args.verbose>=2): logger.info("Logger level set to {}".format("INFO" if args.verbose==2 else "DEBUG")) logger.debug("Launching app")