aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAlexander Lunegov <alunegov@gmail.com>2016-12-21 12:09:43 +0500
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-12-22 08:18:41 +0100
commitd5d21b67d24908dfddad95ac9a1e2f66395cad51 (patch)
treef3cd83fbf11ff8006bc9ce639d719591b0df08d6 /models
parentc46eb3f5b3db6bd9b4568c1ff3e8d70f733e66ee (diff)
downloadgitea-d5d21b67d24908dfddad95ac9a1e2f66395cad51.tar.gz
gitea-d5d21b67d24908dfddad95ac9a1e2f66395cad51.zip
Fix string format verbs (#3637)
Diffstat (limited to 'models')
-rw-r--r--models/pull.go2
-rw-r--r--models/repo_mirror.go4
-rw-r--r--models/update.go2
-rw-r--r--models/webhook.go2
4 files changed, 5 insertions, 5 deletions
diff --git a/models/pull.go b/models/pull.go
index f42c2cef81..40e40894a9 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -929,7 +929,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 23cbedaa0c..b834a6e5cd 100644
--- a/models/repo_mirror.go
+++ b/models/repo_mirror.go
@@ -231,7 +231,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
}
@@ -241,7 +241,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 8b92dac358..39d4f7e3b6 100644
--- a/models/update.go
+++ b/models/update.go
@@ -106,7 +106,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 6413d6edb8..2da88de2a4 100644
--- a/models/webhook.go
+++ b/models/webhook.go
@@ -634,7 +634,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 {