From de7e39a882b4784838602ea4408aed1035c4be6e Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Fri, 14 Jun 2024 09:36:39 +0200 Subject: [PATCH] Add log for errors on message import (#5863) As per title :) --- .../gmail/services/messaging-gmail-messages-import.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/services/messaging-gmail-messages-import.service.ts b/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/services/messaging-gmail-messages-import.service.ts index 8b6e462426ac..ec3d81d4ee3b 100644 --- a/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/services/messaging-gmail-messages-import.service.ts +++ b/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/services/messaging-gmail-messages-import.service.ts @@ -152,6 +152,10 @@ export class MessagingGmailMessagesImportService { workspaceId, ); } catch (error) { + this.logger.log( + `Messaging import for workspace ${workspaceId} and message channel ${messageChannel.id} failed with error: ${error}`, + ); + await this.cacheStorage.setAdd( `messages-to-import:${workspaceId}:gmail:${messageChannel.id}`, messageIdsToFetch,