Bug 1249092 - Log profile path in debug mode. r=rnewman
authorMichael Comella <michael.l.comella@gmail.com>
Tue, 01 Mar 2016 11:44:53 -0800
changeset 322670 ac846629e1df216445858e18057d0ef4e912fad2
parent 322669 a01fcd62cc61293aac1e32a543937b39dc987080
child 322743 bdde3fedb45be528f985a0aff373b37b010fb927
child 322748 dfd6deee384cd99161a9dfd84afed9fb5b97a4ac
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman
bugs1249092
milestone47.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 1249092 - Log profile path in debug mode. r=rnewman MozReview-Commit-ID: BhK3YFbglee
mobile/android/base/java/org/mozilla/gecko/GeckoProfile.java
--- a/mobile/android/base/java/org/mozilla/gecko/GeckoProfile.java
+++ b/mobile/android/base/java/org/mozilla/gecko/GeckoProfile.java
@@ -260,17 +260,17 @@ public final class GeckoProfile {
         // If that doesn't exist, look for a profile called 'default'.
         if (TextUtils.isEmpty(profileName) && profileDir == null) {
             try {
                 profileName = GeckoProfile.getDefaultProfileName(context);
             } catch (NoMozillaDirectoryException e) {
                 // We're unable to do anything sane here.
                 throw new RuntimeException(e);
             }
-        } else {
+        } else if (AppConstants.DEBUG_BUILD) {
             Log.v(LOGTAG, "Fetching profile: '" + profileName + "', '" + profileDir + "'");
         }
 
         // Actually try to look up the profile.
         synchronized (sProfileCache) {
             GeckoProfile profile = sProfileCache.get(profileName);
             if (profile == null) {
                 try {