mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Also don't log more expected SQL errors
This commit is contained in:
parent
49e509e420
commit
f8d4fa57c6
1 changed files with 3 additions and 0 deletions
|
|
@ -22,6 +22,9 @@ export const KyselyLogger: Logger = (event) => {
|
|||
switch (event.error.message) {
|
||||
case 'duplicate key value violates unique constraint "nostr_events_pkey"':
|
||||
case 'duplicate key value violates unique constraint "author_stats_pkey"':
|
||||
case 'duplicate key value violates unique constraint "event_stats_pkey"':
|
||||
case 'duplicate key value violates unique constraint "event_zaps_pkey"':
|
||||
case 'insert or update on table "event_stats" violates foreign key constraint "event_stats_event_id_fkey"':
|
||||
return; // Don't log expected errors
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue