aboutsummaryrefslogtreecommitdiff
path: root/internal/db/repo_collaboration.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/repo_collaboration.go
parent422a20648466f270de195dce3bca04e977bacd13 (diff)
log: migrate to unknwon.dev/clog/v2 (#5927)
* Add unknwon.dev/clog/v2 * Update all places
Diffstat (limited to 'internal/db/repo_collaboration.go')
-rw-r--r--internal/db/repo_collaboration.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/repo_collaboration.go b/internal/db/repo_collaboration.go
index 84059c0a..b3d046ec 100644
--- a/internal/db/repo_collaboration.go
+++ b/internal/db/repo_collaboration.go
@@ -7,7 +7,7 @@ package db
import (
"fmt"
- log "gopkg.in/clog.v1"
+ log "unknwon.dev/clog/v2"
api "github.com/gogs/go-gogs-client"
)
@@ -41,7 +41,7 @@ func IsCollaborator(repoID, userID int64) bool {
}
has, err := x.Get(collaboration)
if err != nil {
- log.Error(2, "get collaboration [repo_id: %d, user_id: %d]: %v", repoID, userID, err)
+ log.Error("get collaboration [repo_id: %d, user_id: %d]: %v", repoID, userID, err)
return false
}
return has