From 1eb37820e8db0f38920af5ebcf5e1d6d9af20369 Mon Sep 17 00:00:00 2001 From: Andres Pinto Date: Thu, 13 Jun 2024 12:43:47 -0400 Subject: [PATCH] chore: added logs to auth route --- src/app/routes/auth.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/routes/auth.ts b/src/app/routes/auth.ts index cefc117f..56debaad 100644 --- a/src/app/routes/auth.ts +++ b/src/app/routes/auth.ts @@ -170,6 +170,7 @@ export class AuthController { const keys = await this.service.KeyServer.getKeys(userData); const rootFolder = await this.service.Folder.getById(userData.root_folder_id); + console.log('Request before payments'); const user = { email: req.body.email, userId: userData.userId, @@ -245,6 +246,7 @@ export default (router: Router, service: any, config: Config) => { return res.status(err.statusCode).send({ error: err.message, code: err.code }); } + logger.error(err); logger.error(`[AUTH/ACCESS]: ERROR for user ${req.body.email}: ${(err as Error).message}`); res.status(500).send({ error: 'Internal Server Error' });