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 } }