Skip to content

Commit

Permalink
trivial. for test
Browse files Browse the repository at this point in the history
  • Loading branch information
taekyu.kang committed Nov 25, 2024
1 parent 8412c28 commit 515d9d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/middleware/logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 515d9d6

Please sign in to comment.