Skip to content

Commit

Permalink
fix: DetailedLog format. (#4467)
Browse files Browse the repository at this point in the history
  • Loading branch information
r27153733 authored Dec 21, 2024
1 parent 8625864 commit f57874a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest/handler/loghandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func logDetails(r *http.Request, response *detailLoggedResponseWriter, timer *ut
r.Method, code, r.RemoteAddr, timex.ReprOfDuration(duration), dumpRequest(r)))
if duration > slowThreshold.Load() {
logger.Slowf("[HTTP] %s - %d - %s - slowcall(%s)\n=> %s\n", r.Method, code, r.RemoteAddr,
fmt.Sprintf("slowcall(%s)", timex.ReprOfDuration(duration)), dumpRequest(r))
timex.ReprOfDuration(duration), dumpRequest(r))
}

body := logs.Flush()
Expand Down

0 comments on commit f57874a

Please sign in to comment.