aboutsummaryrefslogtreecommitdiff
path: root/internal/db/access.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-02-20 02:25:02 +0800
committerGitHub <noreply@github.com>2020-02-20 02:25:02 +0800
commit1c09373b4f7dbc68154c817b4ee44bfa3b3f637c (patch)
treeaeec9a80d10f9ef28f0d0b128f8a84bf3cb5bdb1 /internal/db/access.go
parent422a20648466f270de195dce3bca04e977bacd13 (diff)
log: migrate to unknwon.dev/clog/v2 (#5927)
* Add unknwon.dev/clog/v2 * Update all places
Diffstat (limited to 'internal/db/access.go')
-rw-r--r--internal/db/access.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/access.go b/internal/db/access.go
index e9c8b5b7..b5c6cd28 100644
--- a/internal/db/access.go
+++ b/internal/db/access.go
@@ -7,7 +7,7 @@ package db
import (
"fmt"
- log "gopkg.in/clog.v1"
+ log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/db/errors"
)
@@ -111,7 +111,7 @@ func (u *User) GetRepositoryAccesses() (map[*Repository]AccessMode, error) {
repo, err := GetRepositoryByID(access.RepoID)
if err != nil {
if errors.IsRepoNotExist(err) {
- log.Error(2, "GetRepositoryByID: %v", err)
+ log.Error("GetRepositoryByID: %v", err)
continue
}
return nil, err