Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huangzhicong
/
SmartCanteen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
21805f9e
authored
Mar 08, 2020
by
pye52
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
现在无关紧要的error不会再输出堆栈信息以污染日志
parent
0b3cabc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/src/main/java/com/bgycc/smartcanteen/socket/SCWebSocketClient.java
+2
-2
No files found.
app/src/main/java/com/bgycc/smartcanteen/socket/SCWebSocketClient.java
View file @
21805f9e
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment