mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-10 15:04:55 +08:00
CLI: Make --dump output clean
This commit is contained in:
parent
4792df8d89
commit
1e94f9bc78
1 changed files with 2 additions and 1 deletions
|
@ -344,7 +344,8 @@ This is free software, and you are welcome to redistribute it under certain cond
|
|||
else:
|
||||
log_file = "/var/log/{}.log".format(__intname__)
|
||||
|
||||
if args.json:
|
||||
# We also don't log to console in dump mode as we want to keep the output clean
|
||||
if args.json or args.dump:
|
||||
_JSON = True
|
||||
logger = ofunctions.logger_utils.logger_get_logger(
|
||||
log_file, console=_DEBUG, debug=_DEBUG
|
||||
|
|
Loading…
Add table
Reference in a new issue