Add method to log error without throwable
Add Ln.e(message) in addition to Ln.e(message, error).
This commit is contained in:
parent
668e54fd4b
commit
2837c6eaab
1 changed files with 7 additions and 1 deletions
|
@ -52,7 +52,13 @@ public final class Ln {
|
|||
if (isEnabled(Level.ERROR)) {
|
||||
Log.e(TAG, message, throwable);
|
||||
System.out.println("ERROR: " + message);
|
||||
if (throwable != null) {
|
||||
throwable.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void e(String message) {
|
||||
e(message, null);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue