From fa1360090a51e2fa200b0f7bdfdacdb60c7b7994 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Fri, 23 Apr 2021 10:23:41 +0200 Subject: [PATCH] improve logging for LoganSquareJodaTimeConverter Signed-off-by: Andy Scherzinger --- .../models/json/converters/LoganSquareJodaTimeConverter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/models/json/converters/LoganSquareJodaTimeConverter.java b/app/src/main/java/com/nextcloud/talk/models/json/converters/LoganSquareJodaTimeConverter.java index 65f5d792a..becd71dc7 100644 --- a/app/src/main/java/com/nextcloud/talk/models/json/converters/LoganSquareJodaTimeConverter.java +++ b/app/src/main/java/com/nextcloud/talk/models/json/converters/LoganSquareJodaTimeConverter.java @@ -31,6 +31,7 @@ import org.joda.time.DateTime; import java.io.IOException; public class LoganSquareJodaTimeConverter implements TypeConverter { + private static final String TAG = LoganSquareJodaTimeConverter.class.getSimpleName(); @Override public DateTime parse(JsonParser jsonParser) throws IOException { @@ -41,7 +42,7 @@ public class LoganSquareJodaTimeConverter implements TypeConverter { try { return DateTime.parse(dateString); } catch (final RuntimeException exception) { - Log.e("NC", exception.getLocalizedMessage()); + Log.e(TAG, exception.getLocalizedMessage(), exception); } return null; } @@ -54,4 +55,4 @@ public class LoganSquareJodaTimeConverter implements TypeConverter { jsonGenerator.writeString(object != null ? object.toString() : null); } } -} \ No newline at end of file +}