forked from Galactic/galactic-bot
logging
This commit is contained in:
parent
07c0e8016d
commit
7b34611828
@ -143,7 +143,7 @@ class Infraction {
|
|||||||
if(this._mongoId) filter._id = this._mongoId;
|
if(this._mongoId) filter._id = this._mongoId;
|
||||||
return this.client.storageManager.mongodb.infractions.updateOne(filter, this.json)
|
return this.client.storageManager.mongodb.infractions.updateOne(filter, this.json)
|
||||||
.catch((error) => {
|
.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}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user