From 5d1c0c52bdd70de27044f5208a9c2abb0399209a Mon Sep 17 00:00:00 2001 From: Alvin Ge Date: Fri, 3 May 2024 21:14:17 +0000 Subject: [PATCH] messsage --- helper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/helper.py b/helper.py index ac128d6..50205c7 100755 --- a/helper.py +++ b/helper.py @@ -47,6 +47,7 @@ def monitor(subdomain, FQDN, record_list, uptime, downtime, recorded, zone_id): status_code_range = record_list[i].get("status_code_range", [[200, 299]]) if not within_range(status_code_range, int(response.status_code)) or not string_match(record_list[i].get("match_string", "random_string"), response.text): print(f"{record_list[i]['ip_address']} not within range or string doens't match") + print(f"response status code: {response.status_code}") raise requests.RequestException() print(f"{record_list[i]['ip_address']}:{record_list[i].get('port', 80)}{record_list[i].get('path', '/')} UP")