Selaa lähdekoodia

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

Dan Helfman 5 vuotta sitten
vanhempi
sitoutus
5273037a94
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 1 0
      NEWS
  2. 2 2
      borgmatic/commands/borgmatic.py

+ 1 - 0
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.

+ 2 - 2
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,