Bug 1348727 - Write validation summary information to the sync logs r=tcsc
MozReview-Commit-ID: GRf0DeDhFqP
--- a/services/sync/modules/bookmark_validator.js
+++ b/services/sync/modules/bookmark_validator.js
@@ -838,16 +838,23 @@ class BookmarkValidator {
let clientTree = await PlacesUtils.promiseBookmarksTree("", {
includeItemIds: true
});
let serverState = await this._getServerState(engine);
let serverRecordCount = serverState.length;
let result = await this.compareServerWithClient(serverState, clientTree);
let end = Date.now();
let duration = end - start;
+
+ engine._log.debug(`Validated bookmarks in ${duration}ms`);
+ engine._log.debug(`Problem summary`);
+ for (let { name, count } of result.problemData.getSummary()) {
+ engine._log.debug(` ${name}: ${count}`);
+ }
+
return {
duration,
version: this.version,
problems: result.problemData,
recordCount: serverRecordCount
};
}