Bug 949297 - adjust warning message severity for Australis customizableUI widget removals, r=jaws, a=sylvestre
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Fri, 14 Feb 2014 12:46:12 +0000
changeset 182931 344371c3b37e2465721d3f0ca14bb61478471e7f
parent 182930 98352d9e9067c76ae3d8c33ca7e0053c1927dcb5
child 182932 2dcffcbd3024b26dbba45b2c758fc81ffe25513a
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, sylvestre
bugs949297
milestone29.0a2
Bug 949297 - adjust warning message severity for Australis customizableUI widget removals, r=jaws, a=sylvestre
browser/components/customizableui/src/CustomizableUI.jsm
browser/components/customizableui/src/logging.js
--- a/browser/components/customizableui/src/CustomizableUI.jsm
+++ b/browser/components/customizableui/src/CustomizableUI.jsm
@@ -718,17 +718,17 @@ let CustomizableUIInternal = {
       let window = areaNode.ownerDocument.defaultView;
       if (!showInPrivateBrowsing &&
           PrivateBrowsingUtils.isWindowPrivate(window)) {
         continue;
       }
 
       let widgetNode = window.document.getElementById(aWidgetId);
       if (!widgetNode) {
-        ERROR("Widget not found, unable to remove");
+        INFO("Widget not found, unable to remove");
         continue;
       }
       let container = areaNode.customizationTarget;
       if (isOverflowable) {
         container = areaNode.overflowable.getContainerFor(widgetNode);
       }
 
       this.notifyListeners("onWidgetBeforeDOMChange", widgetNode, null, container, true);
--- a/browser/components/customizableui/src/logging.js
+++ b/browser/components/customizableui/src/logging.js
@@ -18,8 +18,14 @@ function LOG(...args) {
     console.log.apply(console, args);
   }
 }
 
 function ERROR(...args) {
   args.unshift(gModuleName);
   console.error.apply(console, args);
 }
+
+function INFO(...args) {
+  args.unshift(gModuleName);
+  console.info.apply(console, args);
+}
+