Add log for errors on message import (#5863)

As per title :)
This commit is contained in:
Charles Bochet
2024-06-14 09:36:39 +02:00
committed by GitHub
parent 39af374de0
commit 85fd801480

View File

@ -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,