From 515d9d6c2a3c96a06b67539d8407d44635ef9bc3 Mon Sep 17 00:00:00 2001 From: "taekyu.kang" Date: Mon, 25 Nov 2024 10:18:36 +0900 Subject: [PATCH] trivial. for test --- internal/middleware/logging/logging.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/middleware/logging/logging.go b/internal/middleware/logging/logging.go index 31e2c456..1b7a8e53 100644 --- a/internal/middleware/logging/logging.go +++ b/internal/middleware/logging/logging.go @@ -23,7 +23,8 @@ func LoggingMiddleware(next http.Handler) http.Handler { body, err := io.ReadAll(r.Body) if err == nil { - log.Infof(r.Context(), fmt.Sprintf("REQUEST BODY : %s", bytes.NewBuffer(body).String())) + log.Infof(r.Context(), fmt.Sprintf("REQUEST BODY : %v", bytes.NewBuffer(body))) + log.Infof(r.Context(), fmt.Sprintf("REQUEST BODY : %v", bytes.NewBuffer(body).String())) } r.Body = io.NopCloser(bytes.NewBuffer(body)) lrw := NewLoggingResponseWriter(w)