Skip to content

Commit

Permalink
chore: added logs to auth route
Browse files Browse the repository at this point in the history
  • Loading branch information
apsantiso committed Jun 13, 2024
1 parent b97cb4c commit 1eb3782
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/routes/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Check warning on line 173 in src/app/routes/auth.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Unexpected console statement

Check warning on line 173 in src/app/routes/auth.ts

View workflow job for this annotation

GitHub Actions / run-tests (16.x)

Unexpected console statement

Check warning on line 173 in src/app/routes/auth.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Unexpected console statement

Check warning on line 173 in src/app/routes/auth.ts

View workflow job for this annotation

GitHub Actions / run-tests (16.x)

Unexpected console statement

Check warning on line 173 in src/app/routes/auth.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Unexpected console statement

Check warning on line 173 in src/app/routes/auth.ts

View workflow job for this annotation

GitHub Actions / run-tests (16.x)

Unexpected console statement
const user = {
email: req.body.email,
userId: userData.userId,
Expand Down Expand Up @@ -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' });
Expand Down

0 comments on commit 1eb3782

Please sign in to comment.