Skip to content

Commit

Permalink
log event id in verif request to differentiate between double process…
Browse files Browse the repository at this point in the history
…ing vs double sending
  • Loading branch information
bwindels committed Feb 26, 2020
1 parent ce668d0 commit 1e29b1a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/crypto/verification/request/VerificationRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,9 +622,11 @@ export class VerificationRequest extends EventEmitter {
} finally {
// log events we processed so we can see from rageshakes what events were added to a request
logger.log(`Verification request ${this.channel.transactionId}: ` +
`${type} event with ${JSON.stringify(event.getContent())} ` +
`deviceId:${this.channel.deviceId} ` +
`sender:${event.getSender()}, isSentByUs:${isSentByUs} ` +
`${type} event with id:${event.getId()}, ` +
`content:${JSON.stringify(event.getContent())} ` +
`deviceId:${this.channel.deviceId}, ` +
`sender:${event.getSender()}, isSentByUs:${isSentByUs}, ` +
`isLiveEvent:${isLiveEvent}, isRemoteEcho:${isRemoteEcho}, ` +
`phase:${oldPhase}=>${this.phase}, ` +
`observeOnly:${wasObserveOnly}=>${this._observeOnly}`);
}
Expand Down

0 comments on commit 1e29b1a

Please sign in to comment.