bug 982552 - use DEBUG variable to enable logging in debug build; r=mfinkle
authorMyk Melez <myk@mozilla.org>
Wed, 12 Mar 2014 11:57:22 -0700
changeset 190405 e1e6edb891a44988309a0f3a0694a3630659971b
parent 190404 549cc0c0672f937c07b3045558861d5bf753843c
child 190406 0a6f7b7dbeec0089f91ba20afba7debad9a572ff
push id3503
push userraliiev@mozilla.com
push dateMon, 28 Apr 2014 18:51:11 +0000
treeherdermozilla-beta@c95ac01e332e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs982552
milestone30.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 982552 - use DEBUG variable to enable logging in debug build; r=mfinkle
mobile/android/modules/WebappManager.jsm
--- a/mobile/android/modules/WebappManager.jsm
+++ b/mobile/android/modules/WebappManager.jsm
@@ -29,17 +29,17 @@ XPCOMUtils.defineLazyGetter(this, "Strin
 });
 
 function debug(aMessage) {
   // We use *dump* instead of Services.console.logStringMessage so the messages
   // have the INFO level of severity instead of the ERROR level.  And we don't
   // append a newline character to the end of the message because *dump* spills
   // into the Android native logging system, which strips newlines from messages
   // and breaks messages into lines automatically at display time (i.e. logcat).
-#ifdef MOZ_DEBUG
+#ifdef DEBUG
   dump(aMessage);
 #endif
 }
 
 function sendMessageToJava(aMessage) {
   return Services.androidBridge.handleGeckoMessage(JSON.stringify(aMessage));
 }