From 2af51cdb818631efc5b4d4cf921a8882fec8d67e Mon Sep 17 00:00:00 2001 From: Erik Winter Date: Sat, 20 Jan 2024 13:35:17 +0100 Subject: [PATCH] remove log --- cmd/api-service/handler/server.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/api-service/handler/server.go b/cmd/api-service/handler/server.go index 97c96eb..dab3062 100644 --- a/cmd/api-service/handler/server.go +++ b/cmd/api-service/handler/server.go @@ -42,7 +42,6 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { rec.Header().Add("Content-Type", "application/json") // authenticate - logger.Info("authenticating", "key", r.Header.Get("Authorization"), "apiKey", s.apiKey) if key := r.Header.Get("Authorization"); s.apiKey != "localOnly" && key != s.apiKey { Error(rec, http.StatusUnauthorized, "unauthorized", fmt.Errorf("invalid api key"), logger) logger.Info("unauthorized", "key", key)