From 7b34611828dd1ec67e33abecb27424127713066e Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Thu, 21 Jul 2022 01:11:09 +0300 Subject: [PATCH] logging --- src/structure/interfaces/Infraction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structure/interfaces/Infraction.js b/src/structure/interfaces/Infraction.js index 664070b..977fc57 100644 --- a/src/structure/interfaces/Infraction.js +++ b/src/structure/interfaces/Infraction.js @@ -143,7 +143,7 @@ class Infraction { if(this._mongoId) filter._id = this._mongoId; return this.client.storageManager.mongodb.infractions.updateOne(filter, this.json) .catch((error) => { - this.client.logger.error(`There was an issue saving infraction data to the database.\n${error.stack || error}`); + this.client.logger.error(`There was an issue saving infraction data to the database.\n${error.stack || error}\nInfraction data:\n${this.json}`); }); }