Skip to content

Commit

Permalink
log formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashchoudhary07 committed Aug 25, 2023
1 parent ac5884d commit 32c23e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/authService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand Down Expand Up @@ -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');
}

Expand Down

0 comments on commit 32c23e9

Please sign in to comment.