From feb1aa7d932f2b251d306932e1f877909c3650d1 Mon Sep 17 00:00:00 2001 From: Rohit Kolapkar Date: Thu, 1 Sep 2022 04:59:53 -0600 Subject: [PATCH] Fixed request id bug Signed-off-by: Rohit Kolapkar --- csm/core/agent/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csm/core/agent/api.py b/csm/core/agent/api.py index 1bd1424d9..6ecb70b06 100644 --- a/csm/core/agent/api.py +++ b/csm/core/agent/api.py @@ -313,7 +313,7 @@ async def throttler_middleware(request, handler): if CsmRestApi.__nreq >= CsmRestApi.__request_quota: # This block get executed when number of request reaches the request quota CsmRestApi.__nblocked += 1 - msg = (f"[{request.request_id}] The request is blocked because the number of requests reached threshold\n" + msg = (f"The request is blocked because the number of requests reached threshold\n" f"Number of requests blocked since the start is {CsmRestApi.__nblocked}") Log.warn(msg) return web.Response(status=429, text="Too many requests")