update:添加方法以记录错误而不抛出

This commit is contained in:
Barry 2019-06-18 15:47:00 +08:00
parent 6cc9cfbed1
commit c7f337dee7

View file

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