From fe6baf6e41f62acb170d19dc4b2f1c6e93f0486f Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Wed, 30 Aug 2023 11:46:15 +0800 Subject: [PATCH] fix --- proxyserver/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxyserver/main.go b/proxyserver/main.go index a404cc13..a9b6102d 100644 --- a/proxyserver/main.go +++ b/proxyserver/main.go @@ -17,6 +17,7 @@ import ( "time" "github.com/gorilla/websocket" + "github.com/zeromicro/go-zero/core/logx" "gopkg.in/yaml.v2" ) @@ -86,7 +87,7 @@ func main() { mux.Handle("/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { err := r.ParseMultipartForm(100 << 20) if err != nil { - log.Println(err) + logx.Error(err) } if strings.HasPrefix(r.URL.Path, "/api/") {