Commit 21805f9e by pye52

现在无关紧要的error不会再输出堆栈信息以污染日志

parent 0b3cabc6
......@@ -78,7 +78,7 @@ public class SCWebSocketClient extends WebSocketClient {
boolean connectResult = connectBlocking(10, TimeUnit.SECONDS);
LogUtils.d(TAG, connectResult ? "成功链接服务器" : "链接服务器失败");
} catch (InterruptedException e) {
LogUtils.e(TAG, "服务器链接异常: " + e.getMessage(), e);
LogUtils.e(TAG, "服务器链接异常: " + e.getMessage());
}
});
}
......@@ -199,7 +199,7 @@ public class SCWebSocketClient extends WebSocketClient {
@Override
public void onError(Exception e) {
LogUtils.e(TAG, "链接异常: " + e.getMessage(), e);
LogUtils.e(TAG, "链接异常: " + e.getMessage());
connectState.postValue(new ConnectState(ConnectState.OFFLINE));
for (SCWebSocketListener l : listener) {
l.onError(e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment