From 4b751921de31424a64f10cf92120155731df6675 Mon Sep 17 00:00:00 2001 From: Tom Meadows Date: Thu, 18 Sep 2025 14:27:08 +0100 Subject: [PATCH] Update k8s-operator/api-proxy/proxy.go Co-authored-by: David Bond Signed-off-by: Tom Meadows --- k8s-operator/api-proxy/proxy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/k8s-operator/api-proxy/proxy.go b/k8s-operator/api-proxy/proxy.go index 2ea88efa2..d5a1d24fd 100644 --- a/k8s-operator/api-proxy/proxy.go +++ b/k8s-operator/api-proxy/proxy.go @@ -251,8 +251,7 @@ func (ap *APIServerProxy) sessionForProto(w http.ResponseWriter, r *http.Request return } - err = ap.recordRequestAsEvent(r, who) - if err != nil { + if err = ap.recordRequestAsEvent(r, who); err != nil { ap.log.Errorf("error recording Kubernetes API request: %v", err) return }