log in the river

better logs for this API
This commit is contained in:
SpudGunMan
2025-10-10 15:21:36 -07:00
parent bc06712b87
commit 9acd57a420
+1 -1
View File
@@ -621,7 +621,7 @@ def get_flood_noaa(lat=0, lon=0, uid=0):
logger.warning("Location:Error fetching flood gauge data from NOAA for " + str(uid))
return ERROR_FETCHING_DATA
except (requests.exceptions.RequestException):
logger.warning("Location:Error fetching flood gauge data from NOAA for " + str(uid))
logger.warning("Location:Error fetching flood gauge data from:" + api_url + str(uid) + " response: " + str(response.status_code))
return ERROR_FETCHING_DATA
data = response.json()