Log setData events from layout inspector
Summary: Add logging events for runtime changes, if a logger is set Reviewed By: passy Differential Revision: D24195046 fbshipit-source-id: b2d87dd1430c212a679c766e526d83d9958d7e52
This commit is contained in:
committed by
Facebook GitHub Bot
parent
bb3fd8c992
commit
8c5c38d9fc
@@ -352,6 +352,11 @@ export default class LayoutPlugin extends FlipperPlugin<
|
|||||||
const id = this.state.inAXMode
|
const id = this.state.inAXMode
|
||||||
? this.state.selectedAXElement
|
? this.state.selectedAXElement
|
||||||
: this.state.selectedElement;
|
: this.state.selectedElement;
|
||||||
|
this.props.logger.track('usage', 'layoutInspector:setData', {
|
||||||
|
category: path[0],
|
||||||
|
path: Array.from(path).splice(1).join(),
|
||||||
|
...this.realClient.query,
|
||||||
|
});
|
||||||
this.client.call('setData', {
|
this.client.call('setData', {
|
||||||
id,
|
id,
|
||||||
path,
|
path,
|
||||||
|
|||||||
Reference in New Issue
Block a user