From c961aa3b5ade96438dc2ee43fe9e69338a6f7b6a Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 10 Nov 2021 15:53:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/private/serv.go | 1 - routers/repo/http.go | 15 --------------- 2 files changed, 16 deletions(-) diff --git a/routers/private/serv.go b/routers/private/serv.go index c2c6b656c..b76199481 100644 --- a/routers/private/serv.go +++ b/routers/private/serv.go @@ -125,7 +125,6 @@ func ServCommand(ctx *macaron.Context) { return } } - log.Info("git oper to this.") for _, verb := range ctx.QueryStrings("verb") { // clone_cnt if verb == "git-upload-pack" { go repo.IncreaseCloneCnt() diff --git a/routers/repo/http.go b/routers/repo/http.go index cab29ba05..ad2abf567 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -9,7 +9,6 @@ import ( "bytes" "compress/gzip" gocontext "context" - "encoding/json" "fmt" "io/ioutil" "net/http" @@ -313,20 +312,6 @@ func HTTP(ctx *context.Context) { } environ = append(environ, models.ProtectedBranchRepoID+fmt.Sprintf("=%d", repo.ID)) - log.Info("git oper to this 2.") - - dataJson, _ := json.Marshal(ctx.Data) - log.Info("dataJson=" + string(dataJson)) - - reqJson, _ := json.Marshal(ctx.Req.Form) - log.Info("reqJson=" + string(reqJson)) - - log.Info("query go-get:" + ctx.Query("go-get")) - - log.Info("query service:" + ctx.Query("service")) - - paramJson, _ := json.Marshal(ctx.Params) - log.Info("paramJson=" + string(paramJson)) if service == "git-upload-pack" { // clone_cnt go repo.IncreaseCloneCnt()