summaryrefslogtreecommitdiffstats
path: root/routers/repo/topic.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/topic.go')
-rw-r--r--routers/repo/topic.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/topic.go b/routers/repo/topic.go
index 63fcf793f9..4a1194bc2d 100644
--- a/routers/repo/topic.go
+++ b/routers/repo/topic.go
@@ -60,7 +60,7 @@ func TopicsPost(ctx *context.Context) {
err := models.SaveTopics(ctx.Repo.Repository.ID, topics...)
if err != nil {
- log.Error(2, "SaveTopics failed: %v", err)
+ log.Error("SaveTopics failed: %v", err)
ctx.JSON(500, map[string]interface{}{
"message": "Save topics failed.",
})