CLI: Allow using --debug and --json

This commit is contained in:
deajan 2024-12-10 08:06:34 +01:00
parent c4f5c72f2e
commit 1b9d386c80

View file

@ -346,7 +346,7 @@ This is free software, and you are welcome to redistribute it under certain cond
if args.json:
_JSON = True
logger = ofunctions.logger_utils.logger_get_logger(
log_file, console=False, debug=_DEBUG
log_file, console=_DEBUG, debug=_DEBUG
)
else:
logger = ofunctions.logger_utils.logger_get_logger(log_file, debug=_DEBUG)