Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiok committed Dec 8, 2023
1 parent a04d26e commit f9f0a29
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,8 @@ func Unwrap(h WebHandler) http.HandlerFunc {
err := h(w, r)

if err != nil {
oplog := httplog.LogEntry(r.Context())

requestID := middleware.GetReqID(r.Context())
oplog.Error().Str("RequestID", requestID).Msg("cannot process request")
log.Printf("cannot process request - RequestID %s", requestID)

wrapErrorResponse(w, requestID, err)
}
Expand Down

0 comments on commit f9f0a29

Please sign in to comment.