Log client IP.
This commit is contained in:
parent
564cd5cbbe
commit
d5f4638b6f
|
@ -94,7 +94,7 @@ func (server *RPCServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
payload, err := ioutil.ReadAll(r.Body)
|
payload, err := ioutil.ReadAll(r.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
server.logger.Error(err, "Error reading body", "client_ver", cltVersion)
|
server.logger.Error(err, "Error reading body", "client_ver", cltVersion, "client_ip", cltIP)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue