diff --git a/src/conversation-store.ts b/src/conversation-store.ts index 958d845a0..66169b58e 100644 --- a/src/conversation-store.ts +++ b/src/conversation-store.ts @@ -62,9 +62,12 @@ export function conversationContext( context.updateConversation = (conversation: ConversationState) => store.set(conversationId, conversation); try { context.conversation = await store.get(conversationId); - logger.debug(`Conversation context loaded for ID ${conversationId}`); + logger.debug(`Conversation context loaded for ID: ${conversationId}`); } catch (error) { - logger.debug(`Conversation context failed loading for ID: ${conversationId}, error: ${error.message}`); + if (error.messsage !== 'undefined' && error.message !== 'Conversation not found') { + // The conversation data can be expired - error: Conversation expired + logger.debug(`Conversation context failed loading for ID: ${conversationId}, error: ${error.message}`); + } } } else { logger.debug('No conversation ID for incoming event');