From 7ab851360e9470149a72220fa93a6b711e30dd01 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Mon, 6 May 2024 11:47:35 -0700 Subject: [PATCH] Add more error logging to troubleshoot test failure --- neon_api_proxy/services/owm_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neon_api_proxy/services/owm_api.py b/neon_api_proxy/services/owm_api.py index 1da4b53..04d2310 100644 --- a/neon_api_proxy/services/owm_api.py +++ b/neon_api_proxy/services/owm_api.py @@ -74,7 +74,8 @@ def handle_query(self, **kwargs) -> dict: "content": repr(e), "encoding": None} if not resp.ok: - LOG.error(f"Bad response code: {resp.status_code}") + LOG.error(f"Bad response code: {resp.status_code}: " + f"content={resp.content}") return {"status_code": resp.status_code, "content": resp.content, "encoding": resp.encoding}