forked from j62/ctbrec
Improve logging
This commit is contained in:
parent
49469d8987
commit
ae3726d906
|
@ -158,9 +158,9 @@ public class Cam4WsClient {
|
|||
super.onFailure(webSocket, t, response);
|
||||
try {
|
||||
if(response != null) {
|
||||
LOG.error("failure: {}", response.body().string(), t);
|
||||
LOG.error("failure {}: {}", model, response.body().string(), t);
|
||||
} else {
|
||||
LOG.error("failure:", t);
|
||||
LOG.error("failure {}:", model, t);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
LOG.error("Connection failure and couldn't get the response body", e);
|
||||
|
|
Loading…
Reference in New Issue