From 8c5c38d9fcbf53470d7db55467e0942f2912be1e Mon Sep 17 00:00:00 2001 From: Paco Estevez Garcia Date: Fri, 9 Oct 2020 03:55:34 -0700 Subject: [PATCH] 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 --- desktop/plugins/layout/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desktop/plugins/layout/index.tsx b/desktop/plugins/layout/index.tsx index 25517f1d0..1202ac80f 100644 --- a/desktop/plugins/layout/index.tsx +++ b/desktop/plugins/layout/index.tsx @@ -352,6 +352,11 @@ export default class LayoutPlugin extends FlipperPlugin< const id = this.state.inAXMode ? this.state.selectedAXElement : 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', { id, path,