Browse Source

add log

tags/v1.22.5.1^2
chenyifan01 3 years ago
parent
commit
7fe3a9fe32
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      routers/private/hook.go

+ 1
- 0
routers/private/hook.go View File

@@ -371,6 +371,7 @@ func HookPreReceive(ctx *macaron.Context, opts private.HookOptions) {
func HookEnv(ctx *macaron.Context) {
ownerName := ctx.Params(":owner")
repoName := ctx.Params(":repo")
log.Info("try to get hook env.ownerName=%s repoName=%s", ownerName, repoName)
repo, err := models.GetRepositoryByOwnerAndName(ownerName, repoName)
if err != nil {
log.Error("Unable to get repository: %s/%s Error: %v", ownerName, repoName, err)


Loading…
Cancel
Save