Skip to content

Commit

Permalink
log when response is fail and no error
Browse files Browse the repository at this point in the history
  • Loading branch information
sodaRyCN committed Aug 30, 2023
1 parent b51d87d commit 3c458e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/remote/rpc/rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,9 @@ func (r *RpcClient) Request(request rpc_request.IRequest, timeoutMills int64) (r
currentErr = waitReconnect(timeoutMills, &retryTimes, request, errors.New(response.GetMessage()))
continue
}
if response != nil && !response.IsSuccess() {
logger.Warnf("%s request received fail response, error code %d, result code %d, message %s", request.GetRequestType(), response.GetErrorCode(), response.GetResultCode(), response.GetMessage())
}
r.lastActiveTimestamp.Store(time.Now())
return response, nil
}
Expand Down

0 comments on commit 3c458e6

Please sign in to comment.