From 32c23e981859ec33c7d176061c51149502910acb Mon Sep 17 00:00:00 2001 From: Prakash Date: Fri, 25 Aug 2023 18:54:00 +0530 Subject: [PATCH] log formatting --- services/authService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/authService.ts b/services/authService.ts index 73abae5..cda4bf6 100644 --- a/services/authService.ts +++ b/services/authService.ts @@ -67,7 +67,7 @@ const getUserData = async ( }); return { ...user, calendarId: user.Calendar[0].id }; } catch (error) { - logger.error('Could not find user', error); + logger.info('Could not find user', error); return undefined; } }; @@ -116,6 +116,7 @@ const createNewUser = async ( const createdUser: Users | undefined = await prisma.users.create({ data }); if (!createdUser) { + logger.error(`Failed to create user.`); throw new Error('Failed to create user'); }