From 5273037a948bc04f1a36096f61a87f6c6b8ad6d5 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 23 Jan 2020 11:17:39 -0800 Subject: [PATCH] For "list" and "info" actions, show repository names even at verbosity 0. --- NEWS | 1 + borgmatic/commands/borgmatic.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 0b75aa3..09525b1 100644 --- a/NEWS +++ b/NEWS @@ -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. diff --git a/borgmatic/commands/borgmatic.py b/borgmatic/commands/borgmatic.py index 4c9b0d8..248bbb5 100644 --- a/borgmatic/commands/borgmatic.py +++ b/borgmatic/commands/borgmatic.py @@ -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,