File tree Expand file tree Collapse file tree
a2a/weather_service/src/weather_service Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -216,13 +216,13 @@ def run():
216216 app .add_middleware (BaseHTTPMiddleware , dispatch = create_tracing_middleware ())
217217
218218 class LogAuthorizationMiddleware (BaseHTTPMiddleware ):
219- async def dispatch (self , request , call_next ):
220- auth_header = request .headers .get ("authorization" , "No Authorization header" )
221- logger .info (
222- f"🔐 Incoming request to { request .url .path } with Authorization: { auth_header [:80 ] + '...' if len (auth_header ) > 80 else auth_header } "
223- )
224- response = await call_next (request )
225- return response
219+ async def dispatch (self , request , call_next ):
220+ auth_header = request .headers .get ("authorization" , "No Authorization header" )
221+ logger .info (
222+ f"🔐 Incoming request to { request .url .path } with Authorization: { auth_header [:80 ] + '...' if len (auth_header ) > 80 else auth_header } "
223+ )
224+ response = await call_next (request )
225+ return response
226226
227227 # Add logging middleware
228228 app .add_middleware (LogAuthorizationMiddleware )
You can’t perform that action at this time.
0 commit comments