Fix error log on message import (#5866)

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.
This commit is contained in:
bosiraphael
2024-06-14 12:38:35 +02:00
committed by GitHub
parent 28202cc9e0
commit 82741d3b04

View File

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