Merged in feature/SW-2538-redis-api-sentry (pull request #1973)
Feature/SW-2538 redis api sentry * Add fingerprint to be able to differentiate JSON.parse errors * update deploy script * use status over deprecated error function in elysia * use t3-env createFinalSchema for extra validation Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import "@/server/sentry.server.config";
|
||||
import * as Sentry from "@sentry/bun";
|
||||
import { Elysia } from "elysia";
|
||||
|
||||
import { swagger } from "@elysiajs/swagger";
|
||||
@@ -27,6 +29,8 @@ const app = new Elysia()
|
||||
return getErrorReturn(error);
|
||||
case "INTERNAL_SERVER_ERROR":
|
||||
set.status = 500;
|
||||
baseLogger.error("Internal server error", error);
|
||||
Sentry.captureException(error);
|
||||
return getErrorReturn(error);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user