From bc60be3b48cb10e5ae5ae3a4b06643af5d403525 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 13 Nov 2025 17:48:56 +0000 Subject: [PATCH] Add logging to catch specific error type on double notification insert --- notification.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notification.go b/notification.go index 52ac3dfe..f79d15c8 100644 --- a/notification.go +++ b/notification.go @@ -49,7 +49,8 @@ func notifyOauthInvalid(ctx context.Context, user *models.User) { } err := user.InsertUserNotifications(ctx, PGInstance.BobDB, ¬ificationSetter) if err != nil { - slog.Error("Failed to get oauth user", slog.String("err", err.Error())) + LogErrorTypeInfo(err) + slog.Error("Failed to insert new notification. Update this clause to detect duplicate inserts.", slog.String("err", err.Error())) return } }