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) {
|
||||
int b = response[0];
|
||||
int b = response[0] & 0xff;
|
||||
switch (b) {
|
||||
case TS_RESPONSE_CRC_FAILURE:
|
||||
return "CRC_FAILURE";
|
||||
|
|
|
@ -373,6 +373,7 @@ public class Backend implements Closeable {
|
|||
|
||||
public void close(ControllerConnectionState inactiveClient) {
|
||||
inactiveClient.close();
|
||||
log.info("Closing " + inactiveClient);
|
||||
synchronized (lock) {
|
||||
// in case of exception in the initialization phase we do not even add client into the the collection
|
||||
controllersByKey.remove(inactiveClient.getControllerKey());
|
||||
|
|
Loading…
Reference in New Issue