Use explicit names for safe-webview events

Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
This commit is contained in:
Lorenzo Alberto Maria Ambrosi 2018-11-26 16:46:02 +01:00
parent 978497b287
commit 7354fa3050

View File

@ -194,7 +194,8 @@ class SafeWebview extends react.PureComponent {
if (event.resourceType === 'mainFrame') {
const HTTP_OK = 200
analytics.logEvent(event, {
analytics.logEvent('SafeWebview loaded', {
event,
applicationSessionUuid: store.getState().toJS().applicationSessionUuid,
flashingWorkflowUuid: store.getState().toJS().flashingWorkflowUuid
})
@ -250,7 +251,8 @@ class SafeWebview extends react.PureComponent {
if (message.command === 'error') {
analytics.logException(message.data)
} else {
analytics.logEvent(message.data || message, {
analytics.logEvent('SafeWebview console message', {
message,
applicationSessionUuid: store.getState().toJS().applicationSessionUuid,
flashingWorkflowUuid: store.getState().toJS().flashingWorkflowUuid
})