Skip to content

Commit

Permalink
Merge pull request #697 from magieno/throttle-logs-and-improve-redis-…
Browse files Browse the repository at this point in the history
…logging

- Fix
  • Loading branch information
etiennenoel authored May 23, 2024
2 parents cf32b74 + 19929c2 commit 52177dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/logging/src/loggers/console.logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,11 @@ export class ConsoleLogger extends BaseLogger implements LoggerInterface {
} else {
this.numberOfLogsInThisSecond++;
if (this.numberOfLogsInThisSecond > this.maximumLogsPerSecond) {
if(!this.currentlyThrottlingLogs) {
console.error(`Throttling the logs as we are outputting too many logs (${this.maximumLogsPerSecond}) per second.`);
}
this.currentlyThrottlingLogs = true;
console.error(`Throttling the logs as we are outputting too many logs (${this.maximumLogsPerSecond}) per second.`);

}
}

Expand Down

0 comments on commit 52177dd

Please sign in to comment.