diff --git a/models/pull.go b/models/pull.go index 100d4db43..fd3923ce6 100644 --- a/models/pull.go +++ b/models/pull.go @@ -782,7 +782,7 @@ func TestPullRequests() { pr, err := GetPullRequestByID(com.StrTo(prID).MustInt64()) if err != nil { - log.Error(4, "GetPullRequestByID[%d]: %v", prID, err) + log.Error(4, "GetPullRequestByID[%s]: %v", prID, err) continue } else if err = pr.testPatch(); err != nil { log.Error(4, "testPatch[%d]: %v", pr.ID, err) diff --git a/models/repo_mirror.go b/models/repo_mirror.go index 8835c40d2..1ab095eab 100644 --- a/models/repo_mirror.go +++ b/models/repo_mirror.go @@ -223,7 +223,7 @@ func SyncMirrors() { m, err := GetMirrorByRepoID(com.StrTo(repoID).MustInt64()) if err != nil { - log.Error(4, "GetMirrorByRepoID [%d]: %v", repoID, err) + log.Error(4, "GetMirrorByRepoID [%s]: %v", repoID, err) continue } @@ -233,7 +233,7 @@ func SyncMirrors() { m.ScheduleNextUpdate() if err = UpdateMirror(m); err != nil { - log.Error(4, "UpdateMirror [%d]: %v", repoID, err) + log.Error(4, "UpdateMirror [%s]: %v", repoID, err) continue } } diff --git a/models/update.go b/models/update.go index 79d62c8f6..466a6b247 100644 --- a/models/update.go +++ b/models/update.go @@ -101,7 +101,7 @@ func PushUpdate(opts PushUpdateOptions) (err error) { } if isDelRef { - log.GitLogger.Info("Reference '%s' has been deleted from '%s/%s' by %d", + log.GitLogger.Info("Reference '%s' has been deleted from '%s/%s' by %s", opts.RefFullName, opts.RepoUserName, opts.RepoName, opts.PusherName) return nil } diff --git a/models/webhook.go b/models/webhook.go index 084a7ee73..52d9bbbdb 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -602,7 +602,7 @@ func DeliverHooks() { tasks = make([]*HookTask, 0, 5) if err := x.Where("repo_id=? AND is_delivered=?", repoID, false).Find(&tasks); err != nil { - log.Error(4, "Get repository [%d] hook tasks: %v", repoID, err) + log.Error(4, "Get repository [%s] hook tasks: %v", repoID, err) continue } for _, t := range tasks { diff --git a/routers/admin/auths.go b/routers/admin/auths.go index df2512aa0..3cb7a58b0 100644 --- a/routers/admin/auths.go +++ b/routers/admin/auths.go @@ -228,7 +228,7 @@ func EditAuthSourcePost(ctx *context.Context, form auth.AuthenticationForm) { ctx.Handle(500, "UpdateSource", err) return } - log.Trace("Authentication changed by admin(%s): %s", ctx.User.Name, source.ID) + log.Trace("Authentication changed by admin(%s): %d", ctx.User.Name, source.ID) ctx.Flash.Success(ctx.Tr("admin.auths.update_success")) ctx.Redirect(setting.AppSubUrl + "/admin/auths/" + com.ToStr(form.ID))