mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
enhance: access log should get get client info by get method (#30502)
Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user