Merge pull request #3926 from matrix-org/travis/event-tile-trace

Add trace logging to figure out which component is causing weird events
pull/21833/head
Travis Ralston 2020-01-24 08:57:43 -07:00 committed by GitHub
commit 169ca4a4da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -572,6 +572,7 @@ export default createReactClass({
console.error("EventTile attempted to get relations for an event without an ID");
// Use event's special `toJSON` method to log key data.
console.log(JSON.stringify(this.props.mxEvent, null, 4));
console.trace("Stacktrace for https://github.com/vector-im/riot-web/issues/11120");
}
return this.props.getRelationsForEvent(eventId, "m.annotation", "m.reaction");
},