Skip to content

Commit

Permalink
Merge pull request #1195 from matrix-org/bwindels/logoncancel
Browse files Browse the repository at this point in the history
add logging when a request is being cancelled
  • Loading branch information
bwindels authored Feb 4, 2020
2 parents fa93479 + 8bc0ef8 commit ee4c6b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/crypto/verification/request/VerificationRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,15 @@ export class VerificationRequest extends EventEmitter {
} else if (this._observeOnly !== wasObserveOnly) {
this.emit("change");
}

// log cancellations so we can see from rageshakes why riot sometimes cancels
// requests on its own
if (type === CANCEL_TYPE) {
logger.log(`verification request ${this.channel.transactionId}: ` +
`.cancel event with ${JSON.stringify(event.getContent())} ` +
`sender=${event.getSender()}, isSentByUs=${isSentByUs} ` +
`phase=${this.phase}`);
}
}

_setupTimeout(phase) {
Expand Down

0 comments on commit ee4c6b6

Please sign in to comment.