Bug 1030384 - Change a spammy NS_WARNING into a log message instead. r=khuey
authorMike Habicher <mhabicher@mozilla.com>
Thu, 26 Jun 2014 08:20:00 -0400
changeset 191244 9c4ee32efd9223b501b2c149b48b353342b49654
parent 191243 5465fbff0676c0dadd93272d74ee1fc5421822fc
child 191245 247b2cbfadf65cac2a49a34ffda083845dfb75d2
push id8446
push userkwierso@gmail.com
push dateSat, 28 Jun 2014 00:53:07 +0000
treeherderb2g-inbound@4c01e8759555 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs1030384
milestone33.0a1
Bug 1030384 - Change a spammy NS_WARNING into a log message instead. r=khuey
dom/camera/CameraPreferences.cpp
--- a/dom/camera/CameraPreferences.cpp
+++ b/dom/camera/CameraPreferences.cpp
@@ -124,23 +124,19 @@ CameraPreferences::PreferenceChanged(con
       }
       break;
 
     default:
       MOZ_ASSERT_UNREACHABLE("Unhandled preference value type!");
       return;
   }
 
-#ifdef DEBUG
   if (NS_FAILED(rv)) {
-    nsCString msg;
-    msg.AppendPrintf("Failed to update pref '%s' (0x%x)\n", aPref, rv);
-    NS_WARNING(msg.get());
+    DOM_CAMERA_LOGE("Failed to get pref '%s' (0x%x)\n", aPref, rv);
   }
-#endif
 }
 
 /* static */
 bool
 CameraPreferences::Initialize()
 {
   DOM_CAMERA_LOGI("Initializing camera preference callbacks\n");