3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Add extra debug logging

This commit is contained in:
Dragory 2020-07-30 13:51:36 +03:00
parent 2a08e70087
commit dbc083f6a9
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -103,11 +103,13 @@ connect().then(async () => {
getAllUsers: false,
restMode: true,
});
client.setMaxListeners(100);
client.setMaxListeners(200);
client.on("debug", message => {
if (message.includes(" 429 ")) {
logger.info(`[429] ${message}`);
} else {
logger.info(`[ERIS DEBUG] ${message}`);
}
});