fix: Fix logger for handlers not including executionId

This commit is contained in:
Marius Begby committed 2023-08-29 21:13:38 +02:00
1 parent 9ed14f0b8f
commit 0db7bb0cf3
4 files changed
+29 -26

No files matched your search

+7 -6
View File
@@ -2,13 +2,14 @@ import { MessageComponentInteraction } from 'discord.js';
import loggerModule from '../services/logger';
import { cannotSendMessageInChannel } from '../utils/validation/permissionValidator';
const logger = loggerModule.child({
source: 'interactionComponentHandler.js',
module: 'handler',
name: 'interactionComponentHandler'
});
export const handleComponent = async (interaction: MessageComponentInteraction, executionId: string) => {
const logger = loggerModule.child({
source: 'interactionComponentHandler.js',
module: 'handler',
name: 'interactionComponentHandler',
executionId: executionId
});
await interaction.deferReply();
logger.debug('Interaction deferred.');