fix bug on logger
This commit is contained in:
parent
03356e5cd2
commit
0095e6804c
@ -36,7 +36,7 @@ formatter = logging.Formatter('%(levelname)s :: %(message)s')
|
|||||||
console_handler.setFormatter(formatter)
|
console_handler.setFormatter(formatter)
|
||||||
logger.addHandler(console_handler)
|
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.info("Logger level set to {}".format("INFO" if args.verbose==2 else "DEBUG"))
|
||||||
logger.debug("Launching app")
|
logger.debug("Launching app")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user