From 79ddc3158d4b19c11dcead7786a215788a7105df Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Wed, 19 Jul 2023 17:37:51 +0800 Subject: [PATCH] chore: unnecessary use of fmt.Sprintf --- pixiu/pkg/filter/accesslog/access_log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixiu/pkg/filter/accesslog/access_log.go b/pixiu/pkg/filter/accesslog/access_log.go index 059e03cd2..de0801eab 100644 --- a/pixiu/pkg/filter/accesslog/access_log.go +++ b/pixiu/pkg/filter/accesslog/access_log.go @@ -139,7 +139,7 @@ func buildAccessLogMsg(c *http.HttpContext, cost time.Duration) string { } resp := c.TargetResp.Data if err != nil { - builder.WriteString(fmt.Sprintf(" response can not convert to string")) + builder.WriteString(" response can not convert to string") builder.WriteString("] ") } else { builder.WriteString(fmt.Sprintf(" response [ %+v", string(resp)))