Skip to content

Commit

Permalink
Merge pull request #558 from openinfradev/test1
Browse files Browse the repository at this point in the history
trivial. for test
  • Loading branch information
ktkfree authored Nov 25, 2024
2 parents 8412c28 + 515d9d6 commit d535fe1
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 d535fe1

Please sign in to comment.