Skip to content

Commit

Permalink
fix(core): attach action errors to logger
Browse files Browse the repository at this point in the history
  • Loading branch information
slvnperron committed Mar 25, 2019
1 parent 6d4b54a commit baa4cd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bp/core/botpress.ts
Expand Up @@ -250,7 +250,10 @@ export class Botpress {
const dialogEngineLogger = await this.loggerProvider('DialogEngine')
this.dialogEngine.onProcessingError = err => {
const message = this.formatProcessingError(err)
dialogEngineLogger.forBot(err.botId).warn(message)
dialogEngineLogger
.forBot(err.botId)
.attachError(err)
.warn(message)
}

this.notificationService.onNotification = notification => {
Expand Down

0 comments on commit baa4cd5

Please sign in to comment.