Add method to log error without throwable

Add Ln.e(message) in addition to Ln.e(message, error).
This commit is contained in:
Romain Vimont 2019-05-04 14:40:29 +02:00
parent 668e54fd4b
commit 2837c6eaab

View file

@ -52,7 +52,13 @@ public final class Ln {
if (isEnabled(Level.ERROR)) { if (isEnabled(Level.ERROR)) {
Log.e(TAG, message, throwable); Log.e(TAG, message, throwable);
System.out.println("ERROR: " + message); System.out.println("ERROR: " + message);
throwable.printStackTrace(); if (throwable != null) {
throwable.printStackTrace();
}
} }
} }
public static void e(String message) {
e(message, null);
}
} }