mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-24 21:24:28 -08:00
Update rate-limiter.js
Rate limit remaining requests log to debug.
This commit is contained in:
parent
c0fe669cd8
commit
9c30429dbf
|
@ -24,7 +24,7 @@ class KumaRateLimiter {
|
|||
*/
|
||||
async pass(callback, num = 1) {
|
||||
const remainingRequests = await this.removeTokens(num);
|
||||
log.info("rate-limit", "remaining requests: " + remainingRequests);
|
||||
log.debug("rate-limit", "remaining requests: " + remainingRequests);
|
||||
if (remainingRequests < 0) {
|
||||
if (callback) {
|
||||
callback({
|
||||
|
|
Loading…
Reference in a new issue