Bug 1146786 - make readinglist sidebar logs less noisy. r=florian
authorMark Hammond <mhammond@skippinet.com.au>
Tue, 24 Mar 2015 20:31:55 +1100
changeset 235360 b210e4342ee93060ce1d7d26bab3ba01fcacae51
parent 235359 d9241a4e3c5c1bcdbe0d7b4b73cb753e019a3b2a
child 235361 6ea6b9136d588edea4123e1a052b731f37b728d1
push id57400
push userryanvm@gmail.com
push dateTue, 24 Mar 2015 15:59:13 +0000
treeherdermozilla-inbound@47fa87252df0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian
bugs1146786
milestone39.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 1146786 - make readinglist sidebar logs less noisy. r=florian
browser/components/readinglist/sidebar.js
--- a/browser/components/readinglist/sidebar.js
+++ b/browser/components/readinglist/sidebar.js
@@ -196,17 +196,17 @@ let RLSidebar = {
   },
 
   set activeItem(node) {
     if (node && node.parentNode != this.list) {
       log.error(`Unable to set activeItem to invalid node ${node}`);
       return;
     }
 
-    log.debug(`Setting activeItem: ${node ? node.id : null}`);
+    log.trace(`Setting activeItem: ${node ? node.id : null}`);
 
     if (node && node.classList.contains("active")) {
       return;
     }
 
     let prevItem = document.querySelector("#list > .item.active");
     if (prevItem) {
       prevItem.classList.remove("active");
@@ -229,17 +229,17 @@ let RLSidebar = {
   },
 
   set selectedItem(node) {
     if (node && node.parentNode != this.list) {
       log.error(`Unable to set selectedItem to invalid node ${node}`);
       return;
     }
 
-    log.debug(`Setting activeItem: ${node ? node.id : null}`);
+    log.trace(`Setting selectedItem: ${node ? node.id : null}`);
 
     let prevItem = document.querySelector("#list > .item.selected");
     if (prevItem) {
       prevItem.classList.remove("selected");
     }
 
     if (node) {
       node.classList.add("selected");
@@ -266,17 +266,17 @@ let RLSidebar = {
       if (item.classList.contains("selected")) {
         return i;
       }
     }
     return -1;
   },
 
   set selectedIndex(index) {
-    log.debug(`Setting selectedIndex: ${index}`);
+    log.trace(`Setting selectedIndex: ${index}`);
 
     if (index == -1) {
       this.selectedItem = null;
       return;
     }
 
     let item = this.list.children.item(index);
     if (!item) {