aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-04-07 19:17:06 +0800
committerGitHub <noreply@github.com>2024-04-07 19:17:06 +0800
commit83f83019ef3471b847a300f0821499b3896ec987 (patch)
tree65f500016eeab7a74ab2265a6e9e5ab37d99749c /routers/api
parent94aad35a120b05897a0b6b97f0d9605a52ea9642 (diff)
downloadgitea-83f83019ef3471b847a300f0821499b3896ec987.tar.gz
gitea-83f83019ef3471b847a300f0821499b3896ec987.zip
Clean up log messages (#30313)
`log.Xxx("%v")` is not ideal, this PR adds necessary context messages. Remove some unnecessary logs. Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/notify/repo.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/routers/api/v1/notify/repo.go b/routers/api/v1/notify/repo.go
index 8d97e8a3f8..1744426ee8 100644
--- a/routers/api/v1/notify/repo.go
+++ b/routers/api/v1/notify/repo.go
@@ -10,7 +10,6 @@ import (
activities_model "code.gitea.io/gitea/models/activities"
"code.gitea.io/gitea/models/db"
- "code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/services/context"
"code.gitea.io/gitea/services/convert"
@@ -201,7 +200,6 @@ func ReadRepoNotifications(ctx *context.APIContext) {
if !ctx.FormBool("all") {
statuses := ctx.FormStrings("status-types")
opts.Status = statusStringsToNotificationStatuses(statuses, []string{"unread"})
- log.Error("%v", opts.Status)
}
nl, err := db.Find[activities_model.Notification](ctx, opts)
if err != nil {