We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d956a87 commit 3ed8952Copy full SHA for 3ed8952
packages/nextjs/src/utils/withSentry.ts
@@ -79,6 +79,8 @@ export const withSentry = (origHandler: NextApiHandler): WrappedNextApiHandler =
79
try {
80
return await origHandler(req, res); // Call original handler
81
} catch (e) {
82
+ console.error(e);
83
+
84
if (currentScope) {
85
currentScope.addEventProcessor(event => {
86
addExceptionMechanism(event, {
0 commit comments