fix: more changes to logging

This commit is contained in:
Marius Begby committed 2023-08-26 13:59:48 +02:00
1 parent 7ef666f03d
commit 9d9087d4c3
39 files changed
+403 -260

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = {
.setNSFW(false),
execute: async ({ interaction, client }) => {
if (await notValidGuildId(interaction)) {
logger.debug(`[Shard ${client.shard.ids[0]}] Not a valid guild id.`);
logger.debug('Not a valid guild id.');
return;
}
+3 -3
View File
@@ -15,7 +15,7 @@ module.exports = {
.setNSFW(false),
execute: async ({ interaction, client }) => {
if (await notValidGuildId(interaction)) {
logger.debug(`[Shard ${client.shard.ids[0]}] Not a valid guild id.`);
logger.debug('Not a valid guild id.');
return;
}
@@ -25,10 +25,10 @@ module.exports = {
shardClient.registerClientCommands(shardClient);
})
.then(() => {
logger.info(`[Shard ${client.shard.ids[0]}] Reloaded commands across all shards.`);
logger.info('Reloaded commands across all shards.');
});
} catch (error) {
logger.error(error, `[Shard ${client.shard.ids[0]}] Failed to reload commands.`);
logger.error(error, 'Failed to reload commands.');
}
const commands = client.commands.map((command) => {
+2 -2
View File
@@ -90,10 +90,10 @@ module.exports = {
break;
}
logger.debug(`[Shard ${client.shard.ids[0]}] Fetched shardInfo from each shard.`);
logger.debug('Fetched shardInfo from each shard.');
})
.catch((error) => {
logger.error(error, `[Shard ${client.shard.ids[0]}] Failed to fetch client values from shards.`);
logger.error(error, 'Failed to fetch client values from shards.');
});
const shardCount = shardInfoList.length;
+1 -1
View File
@@ -80,7 +80,7 @@ module.exports = {
});
})
.catch((error) => {
logger.error(error, `[Shard ${client.shard.ids[0]}] Failed to fetch client values from shards.`);
logger.error(error, 'Failed to fetch client values from shards.');
});
const botStatusString =