Skip to content

Commit

Permalink
fix: error logging (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Joey Guerra <[email protected]>
  • Loading branch information
joeyguerra and Joey Guerra authored Oct 27, 2023
1 parent 27e5093 commit 739d108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MsTeamsAdapter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class MsTeamsAdapter extends Adapter {
this.conversationReferences = {}
}
async #onTurnError(context, error) {
this.robot.logger.info('[onTurnError]', error, context)
await context.sendTraceActivity('OnTurnError Trace', `${error}`, 'https://www.botframework.com/schemas/error', 'TurnError')
this.robot.logger.info(`[onTurnError] ${error} ${JSON.stringify(context)}`)
await context.sendTraceActivity('onTurnError trace', `${error}`, 'https://www.botframework.com/schemas/error', 'TurnError')
await context.sendActivity('The bot encountered an error.')
}
async send(envelope, ...strings) {
Expand Down

0 comments on commit 739d108

Please sign in to comment.