mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-21 20:15:04 +00:00
update:添加方法以记录错误而不抛出
This commit is contained in:
parent
6cc9cfbed1
commit
c7f337dee7
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);
|
||||
throwable.printStackTrace();
|
||||
if (throwable != null) {
|
||||
throwable.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void e(String message) {
|
||||
e(message, null);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue