diff --git a/src/api/limitter.ts b/src/api/limitter.ts index ea1ece6a70..4231b033af 100644 --- a/src/api/limitter.ts +++ b/src/api/limitter.ts @@ -40,7 +40,7 @@ export default (endpoint: IEndpoint, ctx: IAuthContext) => new Promise((ok, reje return reject('ERR'); } - log(`min remaining: ${info.remaining}`); + log(`@${ctx.user.username} ${endpoint.name} min remaining: ${info.remaining}`); if (info.remaining === 0) { reject('BRIEF_REQUEST_INTERVAL'); @@ -68,7 +68,7 @@ export default (endpoint: IEndpoint, ctx: IAuthContext) => new Promise((ok, reje return reject('ERR'); } - log(`max remaining: ${info.remaining}`); + log(`@${ctx.user.username} ${endpoint.name} max remaining: ${info.remaining}`); if (info.remaining === 0) { reject('RATE_LIMIT_EXCEEDED');