From 3f3da9e524ecf4ca410761ab57754275121ada07 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 1 May 2022 02:33:55 +0300 Subject: [PATCH] error log --- src/structure/client/ModerationManager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/structure/client/ModerationManager.js b/src/structure/client/ModerationManager.js index 302caf4..faa7567 100644 --- a/src/structure/client/ModerationManager.js +++ b/src/structure/client/ModerationManager.js @@ -422,7 +422,9 @@ class ModerationManager { await this.client.storageManager.mongodb.infractions.updateOne( { id: i.id }, { _callbacked: true } - ).catch((e) => { }); //eslint-disable-line no-empty, no-unused-vars, no-empty-function + ).catch((e) => { + this.logger.error(`Error during update of infraction:\n${e.stack || e}`); + }); this.callbacks.delete(i.id); return true;