mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-11 06:32:15 +08:00
Fix JSON conversion log
This commit is contained in:
parent
904ed94e8b
commit
7cd17b9ff6
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ def restic_json_to_prometheus(
|
||||||
try:
|
try:
|
||||||
restic_json = json.loads(restic_json)
|
restic_json = json.loads(restic_json)
|
||||||
except (json.JSONDecodeError, TypeError) as exc:
|
except (json.JSONDecodeError, TypeError) as exc:
|
||||||
logger.error("Cannot decode JSON from restic data: {exc}")
|
logger.error(f"Cannot decode JSON from restic data: {exc}")
|
||||||
restic_json = {}
|
restic_json = {}
|
||||||
|
|
||||||
prom_metrics = []
|
prom_metrics = []
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue