inspect depth

This commit is contained in:
Erik 2024-01-30 15:33:46 +02:00
parent 9be9855910
commit 6f69f9c01a

View File

@ -636,7 +636,7 @@ class ModerationManager implements Initialisable
{ $set: { _callbacked: true } } { $set: { _callbacked: true } }
).catch((e) => ).catch((e) =>
{ {
this.#logger.error(`Error during update of infraction ${infraction.id}:\n${e.stack || e}\n${inspect(e.errInfo)}`); this.#logger.error(`Error during update of infraction ${infraction.id}:\n${e.stack || e}\n${inspect(e.errInfo, { depth: 25 })}`);
}); });
const cb = this.#callbacks.get(infraction.id); const cb = this.#callbacks.get(infraction.id);
if (cb) if (cb)