Bug 1262811 - Don't accidentally log a null message. r=sebastian
MozReview-Commit-ID: DGAAGMZyNlG
--- a/mobile/android/thirdparty/com/keepsafe/switchboard/SwitchBoard.java
+++ b/mobile/android/thirdparty/com/keepsafe/switchboard/SwitchBoard.java
@@ -87,25 +87,24 @@ public class SwitchBoard {
static void loadConfig(Context c, String uuid, @NonNull String defaultServerUrl) {
// Eventually, we want to check `Preferences.getDynamicConfigServerUrl(c);` before
// falling back to the default server URL. However, this will require figuring
// out a new solution for dynamically specifying a new server from the intent.
String serverUrl = defaultServerUrl;
final URL requestUrl = buildConfigRequestUrl(c, uuid, serverUrl);
+ if (DEBUG) Log.d(TAG, "Request URL: " + requestUrl);
if (requestUrl == null) {
return;
}
- if (DEBUG) Log.d(TAG, requestUrl.toString());
final String result = readFromUrlGET(requestUrl);
- if (DEBUG) Log.d(TAG, result);
-
+ if (DEBUG) Log.d(TAG, "Result: " + result);
if (result == null) {
return;
}
try {
final JSONObject json = new JSONObject(result);
// Update the server URL if necessary.