Bug 1356281 - Remove bookmark contents from sync debug logs. r=tcsc
authortiago <tiago.paez11@gmail.com>
Fri, 19 May 2017 04:40:15 -0300
changeset 362864 0529a8cb549c58cb886ee0725db3a36b2430ae40
parent 362863 d218a8cbd8f7d2b8882b52e111a82646cbf999df
child 362865 0d25a6e63f799309f2c56f86ca4c4dc42e85ee3a
push id31988
push usercbook@mozilla.com
push dateThu, 08 Jun 2017 12:43:02 +0000
treeherdermozilla-central@f223e1fd2044 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstcsc
bugs1356281
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1356281 - Remove bookmark contents from sync debug logs. r=tcsc MozReview-Commit-ID: HsMH5mpCK8C
services/sync/modules/engines/bookmarks.js
--- a/services/sync/modules/engines/bookmarks.js
+++ b/services/sync/modules/engines/bookmarks.js
@@ -720,34 +720,34 @@ BookmarksStore.prototype = {
 
   create: function BStore_create(record) {
     let info = record.toSyncBookmark();
     // This can throw if we're inserting an invalid or incomplete bookmark.
     // That's fine; the exception will be caught by `applyIncomingBatch`
     // without aborting further processing.
     let item = Async.promiseSpinningly(PlacesSyncUtils.bookmarks.insert(info));
     if (item) {
-      this._log.debug(`Created ${item.kind} ${item.syncId} under ${
+      this._log.trace(`Created ${item.kind} ${item.syncId} under ${
         item.parentSyncId}`, item);
       if (item.dateAdded != record.dateAdded) {
         this.engine._needWeakReupload.add(item.syncId);
       }
     }
   },
 
   remove: function BStore_remove(record) {
     this._log.trace(`Buffering removal of item "${record.id}".`);
     this._itemsToDelete.add(record.id);
   },
 
   update: function BStore_update(record) {
     let info = record.toSyncBookmark();
     let item = Async.promiseSpinningly(PlacesSyncUtils.bookmarks.update(info));
     if (item) {
-      this._log.debug(`Updated ${item.kind} ${item.syncId} under ${
+      this._log.trace(`Updated ${item.kind} ${item.syncId} under ${
         item.parentSyncId}`, item);
       if (item.dateAdded != record.dateAdded) {
         this.engine._needWeakReupload.add(item.syncId);
       }
     }
   },
 
   _orderChildren: function _orderChildren() {