Skip to content

Commit

Permalink
Add log for errors on message import (twentyhq#5863)
Browse files Browse the repository at this point in the history
As per title :)
  • Loading branch information
charlesBochet authored Jun 14, 2024
1 parent b598a38 commit de7e39a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit de7e39a

Please sign in to comment.