Skip to content

Commit

Permalink
improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
djschilling committed Jan 17, 2023
1 parent c9d4d31 commit c99ed8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctldap.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function checkRateLimit(site, windowInSeconds, maxRequests) {
}
if (rateLimitStore[windowInSeconds][sitename].requestCount > maxRequests) {
logWarn(site, 'Rate Limit reached');
throw new Error('Rate Limit reached for site ' + sitename);
throw new Error('Rate Limit reached for site ' + sitename + ' and limit ' + maxRequests + 'in ' + windowInSeconds + 'seconds window');
}
rateLimitStore[windowInSeconds][sitename].requestCount++;
}
Expand Down

0 comments on commit c99ed8d

Please sign in to comment.