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)