Добавлен метод логгирования в ExceptionHandler
This commit is contained in:
parent
883a3f82f3
commit
c3433688cb
@ -42,6 +42,12 @@ public class ExceptionHandler {
|
|||||||
}).show();
|
}).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void log(String message, Exception ex) {
|
||||||
|
if (DEBUG) {
|
||||||
|
Log.e(TAG, message, ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void log(Exception ex) {
|
public static void log(Exception ex) {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
Log.e(TAG, getErrorMessage(ex));
|
Log.e(TAG, getErrorMessage(ex));
|
||||||
|
Loading…
Reference in New Issue
Block a user