aboutsummaryrefslogtreecommitdiff
path: root/internal/context/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/context/api.go')
-rw-r--r--internal/context/api.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/context/api.go b/internal/context/api.go
index 220ab340..153997d3 100644
--- a/internal/context/api.go
+++ b/internal/context/api.go
@@ -10,8 +10,8 @@ import (
"strings"
"github.com/unknwon/paginater"
- log "gopkg.in/clog.v1"
"gopkg.in/macaron.v1"
+ log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/setting"
)
@@ -39,7 +39,7 @@ func (c *APIContext) Error(status int, title string, obj interface{}) {
}
if status == http.StatusInternalServerError {
- log.Error(3, "%s: %s", title, message)
+ log.Error("%s: %s", title, message)
}
c.JSON(status, map[string]string{