aboutsummaryrefslogtreecommitdiff
path: root/internal/route/org/teams.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/route/org/teams.go
parent422a20648466f270de195dce3bca04e977bacd13 (diff)
log: migrate to unknwon.dev/clog/v2 (#5927)
* Add unknwon.dev/clog/v2 * Update all places
Diffstat (limited to 'internal/route/org/teams.go')
-rw-r--r--internal/route/org/teams.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/route/org/teams.go b/internal/route/org/teams.go
index 779ecb4c..a4072e97 100644
--- a/internal/route/org/teams.go
+++ b/internal/route/org/teams.go
@@ -8,7 +8,7 @@ import (
"path"
"github.com/unknwon/com"
- log "gopkg.in/clog.v1"
+ log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/db"
@@ -90,7 +90,7 @@ func TeamsAction(c *context.Context) {
if db.IsErrLastOrgOwner(err) {
c.Flash.Error(c.Tr("form.last_org_owner"))
} else {
- log.Error(3, "Action(%s): %v", c.Params(":action"), err)
+ log.Error("Action(%s): %v", c.Params(":action"), err)
c.JSON(200, map[string]interface{}{
"ok": false,
"err": err.Error(),
@@ -134,7 +134,7 @@ func TeamsRepoAction(c *context.Context) {
}
if err != nil {
- log.Error(3, "Action(%s): '%s' %v", c.Params(":action"), c.Org.Team.Name, err)
+ log.Error("Action(%s): '%s' %v", c.Params(":action"), c.Org.Team.Name, err)
c.Handle(500, "TeamsRepoAction", err)
return
}