We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be99eb2 commit 336e1acCopy full SHA for 336e1ac
routers/web/user/notification.go
@@ -14,6 +14,7 @@ import (
14
"code.gitea.io/gitea/models"
15
"code.gitea.io/gitea/modules/base"
16
"code.gitea.io/gitea/modules/context"
17
+ "code.gitea.io/gitea/modules/log"
18
"code.gitea.io/gitea/modules/setting"
19
)
20
@@ -35,7 +36,7 @@ func GetNotificationCount(c *context.Context) {
35
36
c.Data["NotificationUnreadCount"] = func() int64 {
37
count, err := models.GetNotificationCount(c.User, models.NotificationStatusUnread)
38
if err != nil {
- c.ServerError("GetNotificationCount", err)
39
+ log.Error("Unable to GetNotificationCount for user:%-v: %v", c.User, err)
40
return -1
41
}
42
0 commit comments