diff --git a/src/index.ts b/src/index.ts index 2a2af58..fd0ed37 100644 --- a/src/index.ts +++ b/src/index.ts @@ -115,6 +115,7 @@ app.view('mermaid-modal-submitted', async ({ ack, body, logger, client }) => { // Check for direct message if (origin.channel.startsWith('D')) { + logger.info('Direct message detected'); try { const userChannel = await client.conversations.open({ users: origin.user_id, @@ -122,6 +123,8 @@ app.view('mermaid-modal-submitted', async ({ ack, body, logger, client }) => { channelToUpload = userChannel.channel?.id ? userChannel.channel.id : channelToUpload; + logger.info('User channel', userChannel); + logger.info('Channel selected', channelToUpload); } catch (error) { logger.error('Failed to open an user channel, but continuing', error); }