mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-12 23:23:50 +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:
|
if result.status_code == 200:
|
||||||
logger.info("Metrics pushed succesfully.")
|
logger.info("Metrics pushed succesfully.")
|
||||||
else:
|
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:
|
except Exception as exc:
|
||||||
logger.error(f"Cannot upload metrics: {exc}")
|
logger.error(f"Cannot upload metrics: {exc}")
|
||||||
logger.debug("Trace:", exc_info=True)
|
logger.debug("Trace:", exc_info=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue