From a534d39351333b750f6350c3dc34ca56f2010b89 Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Wed, 20 Nov 2024 20:33:07 +0530 Subject: [PATCH] Log error correctly (#17755) --- packages/features/auth/lib/getServerSession.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/features/auth/lib/getServerSession.ts b/packages/features/auth/lib/getServerSession.ts index df35cb5890..b5b9473fc2 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; });