mirror of https://github.com/milvus-io/milvus.git
enhance: access log should get get client info by get method (#30502)
Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>pull/30770/head
parent
f3b7a8892f
commit
e5353ad049
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue