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,