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:
@ -153,7 +153,9 @@ export class MessagingGmailMessagesImportService {
|
|||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.logger.log(
|
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(
|
await this.cacheStorage.setAdd(
|
||||||
|
|||||||
Reference in New Issue
Block a user