better logging
This commit is contained in:
parent
9aa91af76a
commit
c363c553f3
|
@ -222,11 +222,11 @@ public class Backend implements Closeable {
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
ControllerConnectionState state = controllersByKey.get(controllerKey);
|
ControllerConnectionState state = controllersByKey.get(controllerKey);
|
||||||
if (state == null) {
|
if (state == null) {
|
||||||
// no such controller
|
log.info("no such controller: " + controllerKey);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (!state.getTwoKindSemaphore().acquireForLongTermUsage(userDetails)) {
|
if (!state.getTwoKindSemaphore().acquireForLongTermUsage(userDetails)) {
|
||||||
// someone is already talking to this controller
|
log.info("someone is already talking to this controller: " + controllerKey);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return state;
|
return state;
|
||||||
|
|
Loading…
Reference in New Issue