forked from Galactic/galactic-bot
loggign
This commit is contained in:
parent
71ba320356
commit
cc182c059c
@ -131,7 +131,7 @@ module.exports = class AutoModeration extends Observer {
|
||||
log += `\nNormalised: ${content}`;
|
||||
|
||||
const catcher = (ln) => {
|
||||
return () => this.logger.debug(`Issue with promise on line ${ln}`);
|
||||
return (error) => this.logger.debug(`Issue with promise on line ${ln}:\n${error.stack}`);
|
||||
};
|
||||
|
||||
// match: what was matched |
|
||||
@ -287,7 +287,9 @@ module.exports = class AutoModeration extends Observer {
|
||||
res.delete?.().catch(() => { /**/ });
|
||||
}, 10000);
|
||||
}
|
||||
this.client.rateLimiter.queueDelete(msg.channel, msg).catch(catcher(269));
|
||||
this.client.rateLimiter.queueDelete(msg.channel, msg).catch((err) => {
|
||||
this.logger.error(err.stack);
|
||||
});
|
||||
|
||||
// 6. Automated actions
|
||||
if (actions.length) {
|
||||
|
Loading…
Reference in New Issue
Block a user