mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-23 10:03:27 +08:00
Reformat file with blaxk
This commit is contained in:
parent
3075e6767e
commit
3ea482d29e
1 changed files with 6 additions and 2 deletions
|
|
@ -159,7 +159,9 @@ def restic_output_2_metrics(restic_result, output, labels=None):
|
|||
)
|
||||
errors = True
|
||||
except IndexError as exc:
|
||||
logger.warning("Cannot parse restic log for added data: {}".format(exc))
|
||||
logger.warning(
|
||||
"Cannot parse restic log for added data: {}".format(exc)
|
||||
)
|
||||
errors = True
|
||||
|
||||
matches = re.match(
|
||||
|
|
@ -199,7 +201,9 @@ def restic_output_2_metrics(restic_result, output, labels=None):
|
|||
errors = True
|
||||
except IndexError as exc:
|
||||
logger.error("Trace:", exc_info=True)
|
||||
logger.warning("Cannot parse restic log for repo size: {}".format(exc))
|
||||
logger.warning(
|
||||
"Cannot parse restic log for repo size: {}".format(exc)
|
||||
)
|
||||
errors = True
|
||||
matches = re.match(
|
||||
r"Failure|Fatal|Unauthorized|no such host|s there a repository at the following location\?",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue