fix bug on logger

This commit is contained in:
Léo 2018-05-26 09:37:23 +02:00
parent 03356e5cd2
commit 0095e6804c

View File

@ -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")