mirror of https://github.com/Genymobile/scrcpy
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
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue