From 6d5a3cf4236e269ac5d62154ad807bb1218f2c09 Mon Sep 17 00:00:00 2001 From: Akash Singhal Date: Mon, 9 Oct 2023 12:15:43 -0700 Subject: [PATCH] chore: downgrade some logging from info to debug (#1111) --- httpserver/context.go | 2 +- httpserver/handlers.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/httpserver/context.go b/httpserver/context.go index 13b4e305b..d7e2f5068 100644 --- a/httpserver/context.go +++ b/httpserver/context.go @@ -42,7 +42,7 @@ type contextHandler struct { func (ch *contextHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { sanitizedMethod := utils.SanitizeString(r.Method) sanitizedURL := utils.SanitizeURL(*r.URL) - logrus.Infof("received request %s %s ", sanitizedMethod, sanitizedURL) + logrus.Debugf("received request %s %s ", sanitizedMethod, sanitizedURL) if err := ch.handler(ch.context, w, r); err != nil { logrus.Errorf("request %s %s failed with error %v", sanitizedMethod, sanitizedURL, err) if serveErr := errcode.ServeJSON(w, err); serveErr != nil { diff --git a/httpserver/handlers.go b/httpserver/handlers.go index 08a2cd0e5..b45ef6e9c 100644 --- a/httpserver/handlers.go +++ b/httpserver/handlers.go @@ -43,7 +43,7 @@ func (server *Server) verify(ctx context.Context, w http.ResponseWriter, r *http startTime := time.Now() sanitizedMethod := utils.SanitizeString(r.Method) sanitizedURL := utils.SanitizeURL(*r.URL) - logger.GetLogger(ctx, server.LogOption).Infof("start request %s %s", sanitizedMethod, sanitizedURL) + logger.GetLogger(ctx, server.LogOption).Debugf("start request %s %s", sanitizedMethod, sanitizedURL) body, err := io.ReadAll(r.Body) if err != nil { @@ -142,7 +142,7 @@ func (server *Server) mutate(ctx context.Context, w http.ResponseWriter, r *http startTime := time.Now() sanitizedMethod := utils.SanitizeString(r.Method) sanitizedURL := utils.SanitizeURL(*r.URL) - logger.GetLogger(ctx, server.LogOption).Infof("start request %s %s", sanitizedMethod, sanitizedURL) + logger.GetLogger(ctx, server.LogOption).Debugf("start request %s %s", sanitizedMethod, sanitizedURL) body, err := io.ReadAll(r.Body) if err != nil {