add verbosity level -2

Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
This commit is contained in:
2023-05-01 03:31:45 +05:30
parent 84c21b062f
commit f512d1e460
5 changed files with 19 additions and 11 deletions

View File

@@ -2,6 +2,7 @@ import logging
import borgmatic.logger
VERBOSITY_DISABLED = -2
VERBOSITY_ERROR = -1
VERBOSITY_ANSWER = 0
VERBOSITY_SOME = 1
@@ -15,6 +16,7 @@ def verbosity_to_log_level(verbosity):
borgmatic.logger.add_custom_log_levels()
return {
VERBOSITY_DISABLED: logging.DISABLED,
VERBOSITY_ERROR: logging.ERROR,
VERBOSITY_ANSWER: logging.ANSWER,
VERBOSITY_SOME: logging.INFO,