feat(chalice): changed health-check logs
This commit is contained in:
parent
b3b2b8d047
commit
d600c1ac2c
2 changed files with 4 additions and 4 deletions
|
|
@ -77,7 +77,7 @@ def __check_be_service(service_name):
|
|||
try:
|
||||
results = requests.get(HEALTH_ENDPOINTS.get(service_name), timeout=2)
|
||||
if results.status_code != 200:
|
||||
print(f"!! issue with the storage-health code:{results.status_code}")
|
||||
print(f"!! issue with the {service_name}-health code:{results.status_code}")
|
||||
print(results.text)
|
||||
# fail_response["details"]["errors"].append(results.text)
|
||||
return fail_response
|
||||
|
|
@ -86,7 +86,7 @@ def __check_be_service(service_name):
|
|||
# fail_response["details"]["errors"].append("timeout")
|
||||
return fail_response
|
||||
except Exception as e:
|
||||
print("!! Issue getting storage-health response")
|
||||
print(f"!! Issue getting {service_name}-health response")
|
||||
print(str(e))
|
||||
try:
|
||||
print(results.text)
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ def __check_be_service(service_name):
|
|||
try:
|
||||
results = requests.get(HEALTH_ENDPOINTS.get(service_name), timeout=2)
|
||||
if results.status_code != 200:
|
||||
print(f"!! issue with the storage-health code:{results.status_code}")
|
||||
print(f"!! issue with the {service_name}-health code:{results.status_code}")
|
||||
print(results.text)
|
||||
# fail_response["details"]["errors"].append(results.text)
|
||||
return fail_response
|
||||
|
|
@ -88,7 +88,7 @@ def __check_be_service(service_name):
|
|||
# fail_response["details"]["errors"].append("timeout")
|
||||
return fail_response
|
||||
except Exception as e:
|
||||
print("!! Issue getting storage-health response")
|
||||
print(f"!! Issue getting {service_name}-health response")
|
||||
print(str(e))
|
||||
try:
|
||||
print(results.text)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue