Chore: Remove duplicated 'name' key from rate limiter logs (#23771)

pull/23769/head
Diego Sampaio 5 years ago committed by GitHub
parent debcaf76d7
commit ed2b4f9123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      app/lib/server/startup/rateLimiter.js

@ -108,10 +108,9 @@ const checkNameForStream = (name) => name && !names.has(name) && name.startsWith
const ruleIds = {};
const callback = (message, name) => (reply, input) => {
const callback = (msg, name) => (reply, input) => {
if (reply.allowed === false) {
logger.info('DDP RATE LIMIT:', message);
logger.info({ ...reply, ...input });
logger.info({ msg, reply, input });
metrics.ddpRateLimitExceeded.inc({
limit_name: name,
user_id: input.userId,

Loading…
Cancel
Save