From 06791b432d8e4d9c495b1205f16b09fc4166a14e Mon Sep 17 00:00:00 2001 From: Darragh O'Reilly Date: Mon, 10 Jun 2024 10:36:23 +0100 Subject: [PATCH] Log error when server responds with http 403 --- server/comms.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/comms.go b/server/comms.go index 67539f080..a99b44183 100644 --- a/server/comms.go +++ b/server/comms.go @@ -485,6 +485,7 @@ func send_client_messages(server_obj *Server) http.Handler { message_info, err := server_obj.Decrypt(req.Context(), body) if err != nil { + server_obj.Error("Unable to decrypt body from %v: %v", req.RemoteAddr, err) // Just plain reject with a 403. http.Error(w, "", http.StatusForbidden) return