Log body len.

This commit is contained in:
Владислав Весельский 2024-04-12 20:21:13 +03:00
parent d5f4638b6f
commit ac3bd6c2bf
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,8 @@ func (server *RPCServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
payload, err := ioutil.ReadAll(r.Body)
if err != nil {
server.logger.Error(err, "Error reading body", "client_ver", cltVersion, "client_ip", cltIP)
payloadLen := len(payload)
server.logger.Error(err, "Error reading body", "client_ver", cltVersion, "client_ip", cltIP, "body_len", payloadLen)
return
}