Skip to content

Commit eb2f17e

Browse files
committed
mod: use devLog instead of console.log
1 parent 6c0c3e2 commit eb2f17e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/RateLimiter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export class RateLimiter {
6666
while (this.respondedQueue.peekFront() && this.respondedQueue.peekFront()!.timestamp < now - this.window * 1000) {
6767
this.respondedQueue.shift();
6868
}
69-
//#ifdef DEVELOPMENT_BUILD
70-
console.log(`[Rate] reqQueue: ${this.requestedQueue.length}, respQueue: ${this.respondedQueue.length}, oldReqQueueSize: ${oldReqQueueSize}, oldRespQueueSize: ${oldRespQueueSize}`);
69+
//#ifdef DEVELOPMENT_BUILDD
70+
devLog(`[Rate] reqQueue: ${this.requestedQueue.length}, respQueue: ${this.respondedQueue.length}, oldReqQueueSize: ${oldReqQueueSize}, oldRespQueueSize: ${oldRespQueueSize}`);
7171
//#endif
7272
}
7373

0 commit comments

Comments
 (0)