mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-12 16:04:48 +08:00
Improve metrics upload error log
This commit is contained in:
parent
2e363593b9
commit
f08eb22fab
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ def upload_metrics(destination: str, authentication, no_cert_verify: bool, metri
|
|||
if result.status_code == 200:
|
||||
logger.info("Metrics pushed succesfully.")
|
||||
else:
|
||||
logger.warning(f"Could not push metrics: {result.reason}: {result.text}")
|
||||
logger.warning(f"Could not push metrics: {result.status_code}: {result.text}")
|
||||
except Exception as exc:
|
||||
logger.error(f"Cannot upload metrics: {exc}")
|
||||
logger.debug("Trace:", exc_info=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue