Bug 1145192 - Don't spam the logs when retrieving the profile on Android. r=snorp

This commit is contained in:
Dylan Roeh 2015-07-01 15:41:30 -07:00
parent a451044e6c
commit 5c7b32a854

View File

@ -240,7 +240,6 @@ public final class GeckoProfile {
// If the directory changes, the returned GeckoProfile instance will be mutated.
// If the factory differs, it will be *ignored*.
public static GeckoProfile get(Context context, String profileName, File profileDir, BrowserDB.Factory dbFactory) {
Log.v(LOGTAG, "Fetching profile: '" + profileName + "', '" + profileDir + "'");
if (context == null) {
throw new IllegalArgumentException("context must be non-null");
}
@ -254,6 +253,8 @@ public final class GeckoProfile {
// We're unable to do anything sane here.
throw new RuntimeException(e);
}
} else {
Log.v(LOGTAG, "Fetching profile: '" + profileName + "', '" + profileDir + "'");
}
// Actually try to look up the profile.