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/template/template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/template') diff --git a/internal/template/template.go b/internal/template/template.go index 808f4a9a..2c169a4a 100644 --- a/internal/template/template.go +++ b/internal/template/template.go @@ -19,7 +19,7 @@ import ( "github.com/microcosm-cc/bluemonday" "golang.org/x/net/html/charset" "golang.org/x/text/transform" - log "gopkg.in/clog.v1" + log "unknwon.dev/clog/v2" "gogs.io/gogs/internal/db" "gogs.io/gogs/internal/markup" @@ -292,7 +292,7 @@ func ActionIcon(opType int) string { func ActionContent2Commits(act Actioner) *db.PushCommits { push := db.NewPushCommits() if err := jsoniter.Unmarshal([]byte(act.GetContent()), push); err != nil { - log.Error(4, "Unmarshal:\n%s\nERROR: %v", act.GetContent(), err) + log.Error("Unmarshal:\n%s\nERROR: %v", act.GetContent(), err) } return push } -- cgit v1.2.3