mirror of https://github.com/rusefi/rusefi-1.git
better logging #553
This commit is contained in:
parent
507147c74c
commit
c17ad984de
|
@ -51,6 +51,7 @@ public class IncomingDataBuffer {
|
||||||
while (cbb.length() < count) {
|
while (cbb.length() < count) {
|
||||||
int timeout = (int) (startTimestamp + Timeouts.BINARY_IO_TIMEOUT - System.currentTimeMillis());
|
int timeout = (int) (startTimestamp + Timeouts.BINARY_IO_TIMEOUT - System.currentTimeMillis());
|
||||||
if (timeout <= 0) {
|
if (timeout <= 0) {
|
||||||
|
logger.info(loggingMessage + ": timeout. Got only " + cbb.length());
|
||||||
return true; // timeout. Sad face.
|
return true; // timeout. Sad face.
|
||||||
}
|
}
|
||||||
cbb.wait(timeout);
|
cbb.wait(timeout);
|
||||||
|
|
Loading…
Reference in New Issue