Skip to content

Commit

Permalink
[Telemetry] Swallow errors in opt-in remote notification from the server
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Aug 21, 2020
1 parent 23f46c9 commit 5d153ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plugins/telemetry/server/routes/telemetry_opt_in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ export function registerTelemetryOptInRoutes({

if (config.sendUsageFrom === 'server') {
const optInStatusUrl = config.optInStatusUrl;
await sendTelemetryOptInStatus(
sendTelemetryOptInStatus(
telemetryCollectionManager,
{ optInStatusUrl, newOptInStatus },
statsGetterConfig
);
).catch(() => {
// Swallow this error. The server is likely behind a firewall and can't reach the remote service
});
}

await updateTelemetrySavedObject(context.core.savedObjects.client, attributes);
Expand Down

0 comments on commit 5d153ae

Please sign in to comment.