diff --git a/packages/plugins/users/src/middlewares/parseToken.ts b/packages/plugins/users/src/middlewares/parseToken.ts index a82137e33..64d801552 100644 --- a/packages/plugins/users/src/middlewares/parseToken.ts +++ b/packages/plugins/users/src/middlewares/parseToken.ts @@ -29,9 +29,11 @@ async function findUserByToken(ctx: Context) { id: userId, }, }); + ctx.logger.info(`Current user id: ${userId}`); return user; } catch (error) { console.log(error); + ctx.logger.error(error); return null; } }