aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-09 19:29:59 -0500
committerUnknwon <u@gogs.io>2017-02-09 19:29:59 -0500
commiteb66060cd7b9bce996b1d75ae80ce1ef31d5ce62 (patch)
treecb692b6a3504985f3d0de7de159a4b8cc6f0d4a5 /models
parent8a19f8a63c12fb1119c86fa65fa408ecba00bc6c (diff)
log: start using gopkg.in/clog.v1
Diffstat (limited to 'models')
-rw-r--r--models/access.go2
-rw-r--r--models/action.go2
-rw-r--r--models/admin.go2
-rw-r--r--models/git_diff.go2
-rw-r--r--models/issue.go2
-rw-r--r--models/issue_comment.go2
-rw-r--r--models/issue_mail.go2
-rw-r--r--models/login_source.go2
-rw-r--r--models/migrations/migrations.go2
-rw-r--r--models/org.go2
-rw-r--r--models/pull.go2
-rw-r--r--models/repo.go2
-rw-r--r--models/repo_editor.go2
-rw-r--r--models/repo_mirror.go2
-rw-r--r--models/ssh_key.go2
-rw-r--r--models/update.go6
-rw-r--r--models/user.go2
-rw-r--r--models/webhook.go2
18 files changed, 20 insertions, 20 deletions
diff --git a/models/access.go b/models/access.go
index b3be9b5b..43a51775 100644
--- a/models/access.go
+++ b/models/access.go
@@ -7,7 +7,7 @@ package models
import (
"fmt"
- "github.com/gogits/gogs/modules/log"
+ log "gopkg.in/clog.v1"
)
type AccessMode int
diff --git a/models/action.go b/models/action.go
index 7ce48217..0f828b99 100644
--- a/models/action.go
+++ b/models/action.go
@@ -15,12 +15,12 @@ import (
"github.com/Unknwon/com"
"github.com/go-xorm/xorm"
+ log "gopkg.in/clog.v1"
"github.com/gogits/git-module"
api "github.com/gogits/go-gogs-client"
"github.com/gogits/gogs/modules/base"
- "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/setting"
)
diff --git a/models/admin.go b/models/admin.go
index c9a13eb5..4e4aba72 100644
--- a/models/admin.go
+++ b/models/admin.go
@@ -13,9 +13,9 @@ import (
"github.com/Unknwon/com"
"github.com/go-xorm/xorm"
+ log "gopkg.in/clog.v1"
"github.com/gogits/gogs/modules/base"
- "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/setting"
)
diff --git a/models/git_diff.go b/models/git_diff.go
index 107f630f..c470e4a2 100644
--- a/models/git_diff.go
+++ b/models/git_diff.go
@@ -20,11 +20,11 @@ import (
"github.com/sergi/go-diff/diffmatchpatch"
"golang.org/x/net/html/charset"
"golang.org/x/text/transform"
+ log "gopkg.in/clog.v1"
"github.com/gogits/git-module"
"github.com/gogits/gogs/modules/base"
- "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/process"
"github.com/gogits/gogs/modules/setting"
"github.com/gogits/gogs/modules/template/highlight"
diff --git a/models/issue.go b/models/issue.go
index bf4d86e0..cc3e4ad0 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -18,9 +18,9 @@ import (
"github.com/go-xorm/xorm"
api "github.com/gogits/go-gogs-client"
gouuid "github.com/satori/go.uuid"
+ log "gopkg.in/clog.v1"
"github.com/gogits/gogs/modules/base"
- "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/setting"
)
diff --git a/models/issue_comment.go b/models/issue_comment.go
index 13a97707..e166efd9 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -11,10 +11,10 @@ import (
"github.com/Unknwon/com"
"github.com/go-xorm/xorm"
+ log "gopkg.in/clog.v1"
api "github.com/gogits/go-gogs-client"
- "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/markdown"
)
diff --git a/models/issue_mail.go b/models/issue_mail.go
index bdaec71b..f4629123 100644
--- a/models/issue_mail.go
+++ b/models/issue_mail.go
@@ -8,8 +8,8 @@ import (
"fmt"
"github.com/Unknwon/com"
+ log "gopkg.in/clog.v1"
- "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/mailer"
"github.com/gogits/gogs/modules/markdown"
"github.com/gogits/gogs/modules/setting"
diff --git a/models/login_source.go b/models/login_source.go
index 0cb88240..8a30ad22 100644
--- a/models/login_source.go
+++ b/models/login_source.go
@@ -18,10 +18,10 @@ import (
"github.com/go-macaron/binding"
"github.com/go-xorm/core"
"github.com/go-xorm/xorm"
+ log "gopkg.in/clog.v1"
"github.com/gogits/gogs/modules/auth/ldap"
"github.com/gogits/gogs/modules/auth/pam"
- "github.com/gogits/gogs/modules/log"
)
type LoginType int
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go
index e2b8bfb2..71a14960 100644
--- a/models/migrations/migrations.go
+++ b/models/migrations/migrations.go
@@ -18,10 +18,10 @@ import (
"github.com/Unknwon/com"
"github.com/go-xorm/xorm"
gouuid "github.com/satori/go.uuid"
+ log "gopkg.in/clog.v1"
"gopkg.in/ini.v1"
"github.com/gogits/gogs/modules/base"
- "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/setting"
)
diff --git a/models/org.go b/models/org.go
index 71d141e0..543a517f 100644
--- a/models/org.go
+++ b/models/org.go
@@ -11,9 +11,9 @@ import (
"strings"
"github.com/go-xorm/xorm"
+ log "gopkg.in/clog.v1"
"github.com/gogits/gogs/modules/base"
- "github.com/gogits/gogs/modules/log"
)
var (
diff --git a/models/pull.go b/models/pull.go
index 7aaffe43..97ca5444 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -13,11 +13,11 @@ import (
"github.com/Unknwon/com"
"github.com/go-xorm/xorm"
+ log "gopkg.in/clog.v1"
"github.com/gogits/git-module"
api "github.com/gogits/go-gogs-client"
- "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/process"
"github.com/gogits/gogs/modules/setting"
"github.com/gogits/gogs/modules/sync"
diff --git a/models/repo.go b/models/repo.go
index 034192ab..cc0acb84 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -23,13 +23,13 @@ import (
"github.com/Unknwon/com"
"github.com/go-xorm/xorm"
"github.com/mcuadros/go-version"
+ log "gopkg.in/clog.v1"
"gopkg.in/ini.v1"
git "github.com/gogits/git-module"
api "github.com/gogits/go-gogs-client"
"github.com/gogits/gogs/modules/bindata"
- "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/markdown"
"github.com/gogits/gogs/modules/process"
"github.com/gogits/gogs/modules/setting"
diff --git a/models/repo_editor.go b/models/repo_editor.go
index dfdb864a..96650204 100644
--- a/models/repo_editor.go
+++ b/models/repo_editor.go
@@ -17,10 +17,10 @@ import (
"github.com/Unknwon/com"
gouuid "github.com/satori/go.uuid"
+ log "gopkg.in/clog.v1"
git "github.com/gogits/git-module"
- "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/process"
"github.com/gogits/gogs/modules/setting"
)
diff --git a/models/repo_mirror.go b/models/repo_mirror.go
index c20397c2..722d769f 100644
--- a/models/repo_mirror.go
+++ b/models/repo_mirror.go
@@ -11,11 +11,11 @@ import (
"github.com/Unknwon/com"
"github.com/go-xorm/xorm"
+ log "gopkg.in/clog.v1"
"gopkg.in/ini.v1"
"github.com/gogits/git-module"
- "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/process"
"github.com/gogits/gogs/modules/setting"
"github.com/gogits/gogs/modules/sync"
diff --git a/models/ssh_key.go b/models/ssh_key.go
index 26351b60..3c970848 100644
--- a/models/ssh_key.go
+++ b/models/ssh_key.go
@@ -21,9 +21,9 @@ import (
"github.com/Unknwon/com"
"github.com/go-xorm/xorm"
"golang.org/x/crypto/ssh"
+ log "gopkg.in/clog.v1"
"github.com/gogits/gogs/modules/base"
- "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/process"
"github.com/gogits/gogs/modules/setting"
)
diff --git a/models/update.go b/models/update.go
index 5a17822a..18d6c9dc 100644
--- a/models/update.go
+++ b/models/update.go
@@ -10,9 +10,9 @@ import (
"os/exec"
"strings"
- git "github.com/gogits/git-module"
+ log "gopkg.in/clog.v1"
- "github.com/gogits/gogs/modules/log"
+ git "github.com/gogits/git-module"
)
type UpdateTask struct {
@@ -101,7 +101,7 @@ func PushUpdate(opts PushUpdateOptions) (err error) {
}
if isDelRef {
- log.GitLogger.Info("Reference '%s' has been deleted from '%s/%s' by %s",
+ log.Trace("Reference '%s' has been deleted from '%s/%s' by %s",
opts.RefFullName, opts.RepoUserName, opts.RepoName, opts.PusherName)
return nil
}
diff --git a/models/user.go b/models/user.go
index e69a6798..4b44a513 100644
--- a/models/user.go
+++ b/models/user.go
@@ -25,13 +25,13 @@ import (
"github.com/go-xorm/xorm"
"github.com/nfnt/resize"
"golang.org/x/crypto/pbkdf2"
+ log "gopkg.in/clog.v1"
"github.com/gogits/git-module"
api "github.com/gogits/go-gogs-client"
"github.com/gogits/gogs/modules/avatar"
"github.com/gogits/gogs/modules/base"
- "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/markdown"
"github.com/gogits/gogs/modules/setting"
)
diff --git a/models/webhook.go b/models/webhook.go
index 8ce924df..babb15de 100644
--- a/models/webhook.go
+++ b/models/webhook.go
@@ -14,11 +14,11 @@ import (
"github.com/go-xorm/xorm"
gouuid "github.com/satori/go.uuid"
+ log "gopkg.in/clog.v1"
api "github.com/gogits/go-gogs-client"
"github.com/gogits/gogs/modules/httplib"
- "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/setting"
"github.com/gogits/gogs/modules/sync"
)