For "list" and "info" actions, show repository names even at verbosity 0.

This commit is contained in:
Dan Helfman 2020-01-23 11:17:39 -08:00
parent 53e6ff9524
commit 5273037a94
2 changed files with 3 additions and 2 deletions

1
NEWS
View file

@ -3,6 +3,7 @@
* #277: Customize Healthchecks log level via borgmatic "--monitoring-verbosity" flag.
* For "create" and "prune" actions, no longer list files or show detailed stats at any verbosities
by default. You can opt back in with "--files" or "--stats" flags.
* For "list" and "info" actions, show repository names even at verbosity 0.
1.4.22
* #276, #285: Disable colored output when "--json" flag is used, so as to produce valid JSON ouput.

View file

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