Bug 1356281 - Remove bookmark contents from sync debug logs. r?tcsc draft
authortiago <tiago.paez11@gmail.com>
Fri, 19 May 2017 04:40:15 -0300
changeset 581043 2a01dedf6ecce19d476bada801bc6f155875b3e7
parent 580912 8e98dab5054dd093a37ba20c62cf0523e484cfbd
child 629470 af955f76c5030d7d8dd5c9d61442d7de6bebe9b6
push id59753
push userbmo:tiago.paez11@gmail.com
push dateFri, 19 May 2017 07:40:32 +0000
reviewerstcsc
bugs1356281
milestone55.0a1
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
@@ -708,34 +708,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() {