diff --git a/src/server/middleware/Authenticator.ts b/src/server/middleware/Authenticator.ts index 3165470..bdcbea5 100644 --- a/src/server/middleware/Authenticator.ts +++ b/src/server/middleware/Authenticator.ts @@ -273,7 +273,7 @@ class Authenticator if (user.hasPermission(permission, level)) return next(); - this.#logger.debug(`Invalid perms ${permission}, ${level}\n${inspect(req.user.permissions)}`); + this.#logger.debug(`Invalid perms: Expected ${permission} to be ${level} for user ${user.name}\n${inspect(user.permissions)}`); return res.status(403).send('Insufficient permissions'); };