Skip to content

Commit

Permalink
Fix string format verbs (gogs#3637)
Browse files Browse the repository at this point in the history
  • Loading branch information
alunegov authored and unknwon committed Dec 21, 2016
1 parent 8f09fc6 commit 7358e46
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion models/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions models/repo_mirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}
}
Expand Down
2 changes: 1 addition & 1 deletion models/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion models/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion routers/admin/auths.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 7358e46

Please sign in to comment.