From b0f1e988351758b6bc02f19fde38b615bd1c263e Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Tue, 30 Jun 2026 00:41:17 +0900 Subject: [PATCH] appview/notifications: log on failure Signed-off-by: Seongmin Lee --- appview/notifications/notifications.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appview/notifications/notifications.go b/appview/notifications/notifications.go index a3337418..e3884fc0 100644 --- a/appview/notifications/notifications.go +++ b/appview/notifications/notifications.go @@ -261,6 +261,7 @@ func (n *Notifications) toggleRead(w http.ResponseWriter, r *http.Request, read err = db.MarkNotificationUnread(n.db, notificationID, userDid) } if err != nil { + n.logger.Error("failed to toggle notification read state", "err", err) http.Error(w, "Failed to update notification", http.StatusInternalServerError) return } @@ -287,6 +288,7 @@ func (n *Notifications) markAllRead(w http.ResponseWriter, r *http.Request) { err := db.MarkAllNotificationsRead(n.db, userDid) if err != nil { + n.logger.Error("failed to mark all notifications as read", "err", err) http.Error(w, "Failed to mark all notifications as read", http.StatusInternalServerError) return } -- 2.51.2