Print stack trace if the JSON could not be parsed

This helps to identify errors in the response.

Change-Id: Icda0919378ebf1deba3a4c7d6d6d010a09eed3ce
This commit is contained in:
Gabriele M 2018-04-06 21:39:52 +02:00 committed by Joey
parent bf2e25d400
commit 6fd45962c1

View File

@ -136,7 +136,7 @@ public class Utils {
Log.d(TAG, "Ignoring incompatible update " + update.getName());
}
} catch (JSONException e) {
Log.e(TAG, "Could not parse update object, index=" + i);
Log.e(TAG, "Could not parse update object, index=" + i, e);
}
}