Skip to content

Commit

Permalink
Fix error log on message import (#5866)
Browse files Browse the repository at this point in the history
Modify #5863 to log the connected account id rather than the message
channel id to be consistent with the other logs and stringify the error.
  • Loading branch information
bosiraphael authored Jun 14, 2024
1 parent 28202cc commit 82741d3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ export class MessagingGmailMessagesImportService {
);
} catch (error) {
this.logger.log(
`Messaging import for workspace ${workspaceId} and message channel ${messageChannel.id} failed with error: ${error}`,
`Messaging import for workspace ${workspaceId} and connected account ${
connectedAccount.id
} failed with error: ${JSON.stringify(error)}`,
);

await this.cacheStorage.setAdd(
Expand Down

0 comments on commit 82741d3

Please sign in to comment.