Added Sentry event filtering for 500 errors

This commit is contained in:
pa
2025-10-20 16:59:43 +09:00
committed by Natsumi
parent f86c3756f4
commit 3569f08729

View File

@@ -46,7 +46,8 @@ export async function initSentry(app) {
if (error && typeof error.message === 'string') {
if (
error.message.includes('403') ||
error.message.includes('404')
error.message.includes('404') ||
error.message.includes('500')
) {
return null;
}