From acff22ecb4c889e0e449ea43a4a3530087d81c8f Mon Sep 17 00:00:00 2001 From: Allan O Date: Thu, 19 Sep 2019 11:24:17 +0300 Subject: [PATCH] Log error using Timber instead of Log --- .../src/main/java/org/smartregister/util/JsonFormUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opensrp-app/src/main/java/org/smartregister/util/JsonFormUtils.java b/opensrp-app/src/main/java/org/smartregister/util/JsonFormUtils.java index eafc70fc6..ae39e8138 100644 --- a/opensrp-app/src/main/java/org/smartregister/util/JsonFormUtils.java +++ b/opensrp-app/src/main/java/org/smartregister/util/JsonFormUtils.java @@ -32,6 +32,8 @@ import java.util.Map; import java.util.UUID; +import timber.log.Timber; + /** * Created by keyman on 08/02/2017. */ @@ -441,7 +443,7 @@ private static void createObservation(Event e, JSONObject jsonObject, String val } } } catch (JSONException e1) { - Log.e(TAG, e1.getMessage()); + Timber.e("%s : %s",TAG , e1.getMessage()); } } else { if (values != null && values.length() > 0) {