From f954405a0ddcd1f8e042bb42cdf0c8a3a0e61596 Mon Sep 17 00:00:00 2001 From: dblock Date: Wed, 25 Sep 2024 16:17:05 -0400 Subject: [PATCH] Await with warnings. Signed-off-by: dblock --- opensearchpy/connection/http_async.py | 1 + 1 file changed, 1 insertion(+) diff --git a/opensearchpy/connection/http_async.py b/opensearchpy/connection/http_async.py index d0490878..8ee20ccb 100644 --- a/opensearchpy/connection/http_async.py +++ b/opensearchpy/connection/http_async.py @@ -238,6 +238,7 @@ async def perform_request( # raise warnings if any from the 'Warnings' header. warning_headers = response.headers.getall("warning", ()) + print(warning_headers) self._raise_warnings(warning_headers) # raise errors based on http status codes, let the client handle those if needed