fix(auth): logger meta on disabling settings

This commit is contained in:
Karol Sójko
2023-12-07 13:43:21 +01:00
parent 3637db2563
commit 3f2d8c902c

View File

@@ -15,7 +15,9 @@ export class EmailSubscriptionUnsubscribedEventHandler implements DomainEventHan
})
if (result.isFailed()) {
this.logger.error(`Failed to disable email setting for user ${event.payload.userEmail}: ${result.getError()}`)
this.logger.error(`Failed to disable email setting for user: ${result.getError()}`, {
userId: event.payload.userEmail,
})
}
}
}