enhance: access log should get get client info by get method (#30502)

Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
pull/30770/head
aoiasd 2024-02-22 14:58:52 +08:00 committed by GitHub
parent f3b7a8892f
commit e5353ad049
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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