better logging
This commit is contained in:
parent
75c5df0a4e
commit
8ba8b6916e
|
@ -394,7 +394,7 @@ public class BinaryProtocol implements BinaryProtocolCommands {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String getCode(byte[] response) {
|
private static String getCode(byte[] response) {
|
||||||
int b = response[0];
|
int b = response[0] & 0xff;
|
||||||
switch (b) {
|
switch (b) {
|
||||||
case TS_RESPONSE_CRC_FAILURE:
|
case TS_RESPONSE_CRC_FAILURE:
|
||||||
return "CRC_FAILURE";
|
return "CRC_FAILURE";
|
||||||
|
|
|
@ -373,6 +373,7 @@ public class Backend implements Closeable {
|
||||||
|
|
||||||
public void close(ControllerConnectionState inactiveClient) {
|
public void close(ControllerConnectionState inactiveClient) {
|
||||||
inactiveClient.close();
|
inactiveClient.close();
|
||||||
|
log.info("Closing " + inactiveClient);
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
// in case of exception in the initialization phase we do not even add client into the the collection
|
// in case of exception in the initialization phase we do not even add client into the the collection
|
||||||
controllersByKey.remove(inactiveClient.getControllerKey());
|
controllersByKey.remove(inactiveClient.getControllerKey());
|
||||||
|
|
Loading…
Reference in New Issue