mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
debug: reduce 'lowest global remaining' console spam
The lowest global remaining rate limit is now only logged when it's below 30, which usually indicates an unusually high amount of API calls.
This commit is contained in:
parent
feeb048855
commit
9d301a4242
1 changed files with 4 additions and 2 deletions
|
@ -390,8 +390,10 @@ connect().then(async () => {
|
|||
}, 100);
|
||||
setInterval(() => {
|
||||
// FIXME: Debug
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log("Lowest global remaining in the past 15 seconds:", lowestGlobalRemaining);
|
||||
if (lowestGlobalRemaining < 30) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log("[DEBUG] Lowest global remaining in the past 15 seconds:", lowestGlobalRemaining);
|
||||
}
|
||||
lowestGlobalRemaining = Infinity;
|
||||
}, 15000);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue