mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-25 16:31:37 +02:00
Add trace logging to figure out which component is causing weird events
For https://github.com/vector-im/riot-web/issues/11120
This commit is contained in:
parent
d3960b8c54
commit
ebcc4d573b
@ -578,6 +578,7 @@ export default createReactClass({
|
|||||||
console.error("EventTile attempted to get relations for an event without an ID");
|
console.error("EventTile attempted to get relations for an event without an ID");
|
||||||
// Use event's special `toJSON` method to log key data.
|
// Use event's special `toJSON` method to log key data.
|
||||||
console.log(JSON.stringify(this.props.mxEvent, null, 4));
|
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");
|
return this.props.getRelationsForEvent(eventId, "m.annotation", "m.reaction");
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user