Skip to content

Scheduling infrastructure for absolutely everyone.

Log error correctly (#17755)

Hariom Balharaa534d3935133
diff --git a/packages/features/auth/lib/getServerSession.ts b/packages/features/auth/lib/getServerSession.ts
index df35cb58904..b5b9473fc29 100644
--- a/packages/features/auth/lib/getServerSession.ts
+++ b/packages/features/auth/lib/getServerSession.ts
@@ -60,7 +60,8 @@ export async function getServerSession(options: {
where: { email },
data: { lastActiveAt: new Date() },
})
- .catch(() => {
+ .catch((error) => {
+ console.error(error);
log.debug("No user found for email: ", email);
return null;
});