From d5f4638b6fc1eb5ef44b595d1e15ab16c7551d85 Mon Sep 17 00:00:00 2001 From: Vladislav Veselskiy Date: Fri, 12 Apr 2024 16:29:17 +0300 Subject: [PATCH] Log client IP. --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 7c63da9..d042422 100644 --- a/server.go +++ b/server.go @@ -94,7 +94,7 @@ 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) + server.logger.Error(err, "Error reading body", "client_ver", cltVersion, "client_ip", cltIP) return }