Skip to content

Commit a2993e3

Browse files
committed
By default log when the rate limit is hit
1 parent 28fccd5 commit a2993e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/webapp/app/services/rateLimiter.server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export class RateLimiter {
5151
});
5252
}
5353

54-
if (!success && this.options.logFailure) {
54+
//log these by default
55+
if (!success && this.options.logFailure !== false) {
5556
logger.info(`RateLimiter (${this.options.keyPrefix}): rate limit exceeded`, {
5657
limit,
5758
reset,

0 commit comments

Comments
 (0)