Add logging to catch specific error type on double notification insert
This commit is contained in:
parent
a6fe8f9027
commit
bc60be3b48
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue