mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 23:25:20 +03:00
improve logging for LoganSquareJodaTimeConverter
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
5e23dc4b4c
commit
fa1360090a
1 changed files with 3 additions and 2 deletions
|
@ -31,6 +31,7 @@ import org.joda.time.DateTime;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
public class LoganSquareJodaTimeConverter implements TypeConverter<DateTime> {
|
public class LoganSquareJodaTimeConverter implements TypeConverter<DateTime> {
|
||||||
|
private static final String TAG = LoganSquareJodaTimeConverter.class.getSimpleName();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public DateTime parse(JsonParser jsonParser) throws IOException {
|
public DateTime parse(JsonParser jsonParser) throws IOException {
|
||||||
|
@ -41,7 +42,7 @@ public class LoganSquareJodaTimeConverter implements TypeConverter<DateTime> {
|
||||||
try {
|
try {
|
||||||
return DateTime.parse(dateString);
|
return DateTime.parse(dateString);
|
||||||
} catch (final RuntimeException exception) {
|
} catch (final RuntimeException exception) {
|
||||||
Log.e("NC", exception.getLocalizedMessage());
|
Log.e(TAG, exception.getLocalizedMessage(), exception);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue