Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
djschilling committed Jan 12, 2023
1 parent 4dd6459 commit bebc9d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctldap.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ function checkRateLimit(site, windowInSeconds, maxRequests) {
};
}
if (rateLimitStore[windowInSeconds][sitename].requestCount > maxRequests) {
logError('Rate Limit reached');
throw new Error('Rate Limit reached');
logWarn(site, 'Rate Limit reached');
throw new Error('Rate Limit reached for site ' + sitename);
}
rateLimitStore[windowInSeconds][sitename].requestCount++;
}
Expand Down

0 comments on commit bebc9d6

Please sign in to comment.