mirror of https://github.com/milvus-io/milvus.git
enhance: access log method support get status when method only return error instead of status (#30409)
Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>pull/30381/head
parent
da50fbfbf4
commit
23aa136444
|
@ -166,11 +166,11 @@ func getMethodStatus(i *GrpcAccessInfo) string {
|
|||
return fmt.Sprintf("Grpc%s", code.String())
|
||||
}
|
||||
|
||||
if i.status.GetCode() != 0 {
|
||||
if i.status.GetCode() != 0 || i.err != nil {
|
||||
return "Failed"
|
||||
}
|
||||
|
||||
return code.String()
|
||||
return "Successful"
|
||||
}
|
||||
|
||||
func getUserName(i *GrpcAccessInfo) string {
|
||||
|
|
Loading…
Reference in New Issue