From e5353ad049e07684e8b7788e3e7ffdd10168641e Mon Sep 17 00:00:00 2001 From: aoiasd <45024769+aoiasd@users.noreply.github.com> Date: Thu, 22 Feb 2024 14:58:52 +0800 Subject: [PATCH] enhance: access log should get get client info by get method (#30502) Signed-off-by: aoiasd --- internal/proxy/accesslog/info.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/proxy/accesslog/info.go b/internal/proxy/accesslog/info.go index 2280951121..14275f9088 100644 --- a/internal/proxy/accesslog/info.go +++ b/internal/proxy/accesslog/info.go @@ -270,11 +270,11 @@ func getExpr(i *GrpcAccessInfo) string { func getSdkVersion(i *GrpcAccessInfo) string { clientInfo := connection.GetManager().Get(i.ctx) if clientInfo != nil { - return clientInfo.SdkType + "-" + clientInfo.SdkVersion + return clientInfo.GetSdkType() + "-" + clientInfo.GetSdkVersion() } if req, ok := i.req.(*milvuspb.ConnectRequest); ok { - return req.ClientInfo.SdkType + "-" + req.ClientInfo.SdkVersion + return req.GetClientInfo().GetSdkType() + "-" + req.GetClientInfo().GetSdkVersion() } return unknownString