diff --git a/services/sync/modules/telemetry.js b/services/sync/modules/telemetry.js index 2b2c3211b91b..30c20c84c839 100644 --- a/services/sync/modules/telemetry.js +++ b/services/sync/modules/telemetry.js @@ -33,7 +33,7 @@ XPCOMUtils.defineLazyServiceGetter(this, "Telemetry", const log = Log.repository.getLogger("Sync.Telemetry"); const TOPICS = [ - "profile-before-change", + "xpcom-shutdown", "weave:service:sync:start", "weave:service:sync:finish", "weave:service:sync:error", @@ -361,7 +361,6 @@ class SyncTelemetryImpl { // We still call submit() with possibly illegal payloads so that tests can // know that the ping was built. We don't end up submitting them, however. if (record.syncs.length) { - log.trace(`submitting ${record.syncs.length} sync record(s) to telemetry`); TelemetryController.submitExternalPing("sync", record); } } @@ -406,7 +405,7 @@ class SyncTelemetryImpl { log.trace(`observed ${topic} ${data}`); switch (topic) { - case "profile-before-change": + case "xpcom-shutdown": this.shutdown(); break;