From ced20a25f71ed523d10de57b0097a01612aa7432 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Thu, 7 Jul 2022 18:48:40 +0300 Subject: [PATCH] debug stuff --- src/utilities/SettingsMigrator.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utilities/SettingsMigrator.js b/src/utilities/SettingsMigrator.js index 4269a12..3f904f4 100644 --- a/src/utilities/SettingsMigrator.js +++ b/src/utilities/SettingsMigrator.js @@ -35,13 +35,13 @@ class SettingsMigrator { } async connect() { - this.logger.info(`Connecting to mongo: ${this._config.database}`); + this.logger.info(`Connecting to mongo: ${this._config.database} for ${this.guild}`); await this.mongo.init(); this.logger.info(`Mongo connected`); } async end() { - this.logger.info(`Disconnecting ${this._config.database}`); + this.logger.info(`Disconnecting ${this._config.database} for ${this.guild}`); await this.mongo.close(); this.logger.info(`Disconnected`); } @@ -207,6 +207,7 @@ class SettingsMigrator { } '2'(result) { + console.log(result); const { moderation, modlogs, muterole, mutetype, automod, wordFilter, ignore, invitefilter, chatlogs, activity, selfrole, killitwithfire, memberlogs, staffRole, staffRule, modpoints, userlogs, grantable, privatelog, linkfilter, autorole, welcomer, prefix, protection } = result; @@ -404,6 +405,7 @@ class SettingsMigrator { if (privatelog.onban) settings.dminfraction.messages.BAN = moderation.onban; } + console.log(settings); return settings; }