From f57874a51fe88b80525f26554b31d852e2db39b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E6=8F=92=E7=94=B5?= <69096367+r27153733@users.noreply.github.com> Date: Sat, 21 Dec 2024 11:48:27 +0800 Subject: [PATCH] fix: DetailedLog format. (#4467) --- rest/handler/loghandler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/handler/loghandler.go b/rest/handler/loghandler.go index 30348e3b..62f48c56 100644 --- a/rest/handler/loghandler.go +++ b/rest/handler/loghandler.go @@ -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()