diff --git a/rest/handler/loghandler.go b/rest/handler/loghandler.go index b236ecf5..d3d5cddc 100644 --- a/rest/handler/loghandler.go +++ b/rest/handler/loghandler.go @@ -170,9 +170,9 @@ func logBrief(r *http.Request, code int, timer *utils.ElapsedTimer, logs *intern buf.WriteString(fmt.Sprintf("[HTTP] %s - %s %s - %s - %s", wrapStatusCode(code), wrapMethod(r.Method), r.RequestURI, httpx.GetRemoteAddr(r), r.UserAgent())) if duration > slowThreshold.Load() { - logger.Slowf("[HTTP] %s - %s - %s %s - %s - slowcall(%s)", + logger.Slowf("[HTTP] %s - %s %s - %s - %s - slowcall(%s)", wrapStatusCode(code), wrapMethod(r.Method), r.RequestURI, httpx.GetRemoteAddr(r), r.UserAgent(), - fmt.Sprintf("slowcall(%s)", timex.ReprOfDuration(duration))) + timex.ReprOfDuration(duration)) } ok := isOkResponse(code)