better logging

This commit is contained in:
rusefi 2020-09-30 23:43:20 -04:00
parent 9aa91af76a
commit c363c553f3
1 changed files with 2 additions and 2 deletions

View File

@ -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;