mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 15:04:09 +01:00
Fix string format verbs (#3637)
This commit is contained in:
parent
c46eb3f5b3
commit
d5d21b67d2
5 changed files with 6 additions and 6 deletions
|
@ -929,7 +929,7 @@ func TestPullRequests() {
|
||||||
|
|
||||||
pr, err := GetPullRequestByID(com.StrTo(prID).MustInt64())
|
pr, err := GetPullRequestByID(com.StrTo(prID).MustInt64())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(4, "GetPullRequestByID[%d]: %v", prID, err)
|
log.Error(4, "GetPullRequestByID[%s]: %v", prID, err)
|
||||||
continue
|
continue
|
||||||
} else if err = pr.testPatch(); err != nil {
|
} else if err = pr.testPatch(); err != nil {
|
||||||
log.Error(4, "testPatch[%d]: %v", pr.ID, err)
|
log.Error(4, "testPatch[%d]: %v", pr.ID, err)
|
||||||
|
|
|
@ -231,7 +231,7 @@ func SyncMirrors() {
|
||||||
|
|
||||||
m, err := GetMirrorByRepoID(com.StrTo(repoID).MustInt64())
|
m, err := GetMirrorByRepoID(com.StrTo(repoID).MustInt64())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(4, "GetMirrorByRepoID [%d]: %v", repoID, err)
|
log.Error(4, "GetMirrorByRepoID [%s]: %v", repoID, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@ func SyncMirrors() {
|
||||||
|
|
||||||
m.ScheduleNextUpdate()
|
m.ScheduleNextUpdate()
|
||||||
if err = UpdateMirror(m); err != nil {
|
if err = UpdateMirror(m); err != nil {
|
||||||
log.Error(4, "UpdateMirror [%d]: %v", repoID, err)
|
log.Error(4, "UpdateMirror [%s]: %v", repoID, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,7 +106,7 @@ func PushUpdate(opts PushUpdateOptions) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if isDelRef {
|
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)
|
opts.RefFullName, opts.RepoUserName, opts.RepoName, opts.PusherName)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -634,7 +634,7 @@ func DeliverHooks() {
|
||||||
|
|
||||||
tasks = make([]*HookTask, 0, 5)
|
tasks = make([]*HookTask, 0, 5)
|
||||||
if err := x.Where("repo_id=? AND is_delivered=?", repoID, false).Find(&tasks); err != nil {
|
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
|
continue
|
||||||
}
|
}
|
||||||
for _, t := range tasks {
|
for _, t := range tasks {
|
||||||
|
|
|
@ -233,7 +233,7 @@ func EditAuthSourcePost(ctx *context.Context, form auth.AuthenticationForm) {
|
||||||
ctx.Handle(500, "UpdateSource", err)
|
ctx.Handle(500, "UpdateSource", err)
|
||||||
return
|
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.Flash.Success(ctx.Tr("admin.auths.update_success"))
|
||||||
ctx.Redirect(setting.AppSubURL + "/admin/auths/" + com.ToStr(form.ID))
|
ctx.Redirect(setting.AppSubURL + "/admin/auths/" + com.ToStr(form.ID))
|
||||||
|
|
Loading…
Reference in a new issue