set logging level to debug when flag or env is provided

main
Hendrik Sokolowski 2024-03-20 14:37:59 +01:00
parent 0db59bcc5d
commit ad07ddee5e
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ args = parser.parse_args()
mqtt_args = {'host': args.mqtt_host}
if args.debug:
logger.setLevel(logging.DEBUG)
mqtt_args['debug'] = args.debug
if args.mqtt_port: