From db1d3a69c45913db9fc2c9df352c604cecd87457 Mon Sep 17 00:00:00 2001 From: Stephen Hand Date: Tue, 5 Nov 2024 09:58:06 +0000 Subject: [PATCH] Logging --- functions/transferChatStart.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/transferChatStart.ts b/functions/transferChatStart.ts index 06a5344d..6609ab49 100644 --- a/functions/transferChatStart.ts +++ b/functions/transferChatStart.ts @@ -281,6 +281,9 @@ export const handler = TokenValidator( taskQueues.find((tq) => tq.friendlyName === DIRECT_TRANSFER_QUEUE_FRIENDLY_NAME) || taskQueues[0].sid; + console.info( + `Transferring conversations task ${taskSid} to worker ${targetSid} via queue ${taskQueueSid} and workflow ${context.TWILIO_CHAT_TRANSFER_WORKFLOW_SID} by creating interaction invite.`, + ); // Create invite to target worker const invite = await client.flexApi.v1.interaction .get(flexInteractionSid)