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; }