From 1c09373b4f7dbc68154c817b4ee44bfa3b3f637c Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Thu, 20 Feb 2020 02:25:02 +0800 Subject: log: migrate to unknwon.dev/clog/v2 (#5927) * Add unknwon.dev/clog/v2 * Update all places --- internal/db/repo_collaboration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/db/repo_collaboration.go') 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 -- cgit v1.2.3