Skip to content

Commit a844be5

Browse files
committed
Revert "test: debug log"
This reverts commit 62d3cfa.
1 parent 62d3cfa commit a844be5

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

routers/private/hook_post_receive.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"fmt"
88
"net/http"
99
"strconv"
10-
"time"
1110

1211
issues_model "code.gitea.io/gitea/models/issues"
1312
repo_model "code.gitea.io/gitea/models/repo"
@@ -25,9 +24,6 @@ import (
2524

2625
// HookPostReceive updates services and users
2726
func HookPostReceive(ctx *gitea_context.PrivateContext) {
28-
// TODO: remove debug code
29-
log.Info("Debug git hook, HookPostReceive: %v", time.Now().Format(time.RFC3339Nano))
30-
3127
opts := web.GetForm(ctx).(*private.HookOptions)
3228

3329
// We don't rely on RepoAssignment here because:
@@ -97,8 +93,6 @@ func HookPostReceive(ctx *gitea_context.PrivateContext) {
9793
})
9894
return
9995
}
100-
// TODO: remove debug code
101-
log.Info("Debug git hook, before sync %v branches: %v", len(updates), time.Now().Format(time.RFC3339Nano))
10296

10397
for _, update := range updates {
10498
if !update.RefFullName.IsBranch() {
@@ -139,9 +133,6 @@ func HookPostReceive(ctx *gitea_context.PrivateContext) {
139133
}
140134
}
141135
}
142-
143-
// TODO: remove debug code
144-
log.Info("Debug git hook, after sync %v branches: %v", len(updates), time.Now().Format(time.RFC3339Nano))
145136
}
146137

147138
// Handle Push Options

routers/private/hook_pre_receive.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"fmt"
88
"net/http"
99
"os"
10-
"time"
1110

1211
"code.gitea.io/gitea/models"
1312
asymkey_model "code.gitea.io/gitea/models/asymkey"
@@ -104,9 +103,6 @@ func (ctx *preReceiveContext) AssertCreatePullRequest() bool {
104103

105104
// HookPreReceive checks whether a individual commit is acceptable
106105
func HookPreReceive(ctx *gitea_context.PrivateContext) {
107-
// TODO: remove debug code
108-
log.Info("Debug git hook, HookPreReceive: %v", time.Now().Format(time.RFC3339Nano))
109-
110106
opts := web.GetForm(ctx).(*private.HookOptions)
111107

112108
ourCtx := &preReceiveContext{

0 commit comments

Comments
 (0)