Fix unwanted console log messages with "list --json" and "info --json".

This commit is contained in:
Dan Helfman 2020-01-23 13:40:54 -08:00
parent 5273037a94
commit 952168ce25

View file

@ -353,6 +353,7 @@ def run_actions(
if arguments['list'].repository is None or validate.repositories_match(
repository, arguments['list'].repository
):
if not arguments['list'].json:
logger.warning('{}: Listing archives'.format(repository))
json_output = borg_list.list_archives(
repository,
@ -367,6 +368,7 @@ def run_actions(
if arguments['info'].repository is None or validate.repositories_match(
repository, arguments['info'].repository
):
if not arguments['info'].json:
logger.warning('{}: Displaying summary info for archives'.format(repository))
json_output = borg_info.display_archives_info(
repository,