Добавлен метод логгирования в ExceptionHandler

This commit is contained in:
Victor 2014-01-10 14:03:07 +02:00
parent 883a3f82f3
commit c3433688cb

View File

@ -42,6 +42,12 @@ public class ExceptionHandler {
}).show();
}
public static void log(String message, Exception ex) {
if (DEBUG) {
Log.e(TAG, message, ex);
}
}
public static void log(Exception ex) {
if (DEBUG) {
Log.e(TAG, getErrorMessage(ex));