mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
Supress unecessary logging (#17050)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
193476723b
commit
5fea89e2ca
@ -204,7 +204,7 @@ public class SocketChannelSession implements SocketSession {
|
|||||||
if (isRunning.getAndSet(false)) {
|
if (isRunning.getAndSet(false)) {
|
||||||
try {
|
try {
|
||||||
if (!running.await(5, TimeUnit.SECONDS)) {
|
if (!running.await(5, TimeUnit.SECONDS)) {
|
||||||
logger.warn("Waited too long for response reader to finish");
|
logger.debug("Waited too long for response reader to finish");
|
||||||
}
|
}
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
@ -321,7 +321,7 @@ public class SocketChannelSession implements SocketSession {
|
|||||||
if (processingThread != null && Thread.currentThread() != processingThread) {
|
if (processingThread != null && Thread.currentThread() != processingThread) {
|
||||||
try {
|
try {
|
||||||
if (!running.await(5, TimeUnit.SECONDS)) {
|
if (!running.await(5, TimeUnit.SECONDS)) {
|
||||||
logger.warn("Waited too long for dispatcher to finish");
|
logger.debug("Waited too long for dispatcher to finish");
|
||||||
}
|
}
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
// do nothing
|
// do nothing
|
||||||
@ -358,7 +358,7 @@ public class SocketChannelSession implements SocketSession {
|
|||||||
listener.responseReceived(stringResponse);
|
listener.responseReceived(stringResponse);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.warn("Exception occurred processing the response '{}': ", response, e);
|
logger.debug("Exception occurred processing the response '{}': ", response, e);
|
||||||
}
|
}
|
||||||
} else if (response instanceof Exception exceptionResponse) {
|
} else if (response instanceof Exception exceptionResponse) {
|
||||||
logger.debug("Dispatching exception: {}", response);
|
logger.debug("Dispatching exception: {}", response);
|
||||||
@ -368,7 +368,7 @@ public class SocketChannelSession implements SocketSession {
|
|||||||
listener.responseException(exceptionResponse);
|
listener.responseException(exceptionResponse);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.warn("Unknown response class: {}", response);
|
logger.debug("Unknown response class: {}", response);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
@ -577,7 +577,7 @@ public class AtlonaPro3Handler extends AtlonaHandler<AtlonaPro3Capabilities> {
|
|||||||
if (retryConnection == null) {
|
if (retryConnection == null) {
|
||||||
final AtlonaPro3Config config = getAtlonaConfig();
|
final AtlonaPro3Config config = getAtlonaConfig();
|
||||||
if (config != null) {
|
if (config != null) {
|
||||||
logger.info("Will try to reconnect in {} seconds", config.getRetryPolling());
|
logger.debug("Will try to reconnect in {} seconds", config.getRetryPolling());
|
||||||
retryConnection = this.scheduler.schedule(() -> {
|
retryConnection = this.scheduler.schedule(() -> {
|
||||||
retryConnection = null;
|
retryConnection = null;
|
||||||
connect();
|
connect();
|
||||||
|
@ -769,10 +769,10 @@ class AtlonaPro3PortocolHandler {
|
|||||||
AtlonaPro3Constants.CHANNEL_POWER), OnOffType.OFF);
|
AtlonaPro3Constants.CHANNEL_POWER), OnOffType.OFF);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
logger.warn("Invalid power response: '{}'", resp);
|
logger.debug("Invalid power response: '{}'", resp);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.warn("Invalid power response: '{}'", resp);
|
logger.debug("Invalid power response: '{}'", resp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -790,7 +790,7 @@ class AtlonaPro3PortocolHandler {
|
|||||||
version = m.group(1);
|
version = m.group(1);
|
||||||
callback.setProperty(AtlonaPro3Constants.PROPERTY_VERSION, version);
|
callback.setProperty(AtlonaPro3Constants.PROPERTY_VERSION, version);
|
||||||
} else {
|
} else {
|
||||||
logger.warn("Invalid version response: '{}'", resp);
|
logger.debug("Invalid version response: '{}'", resp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -808,7 +808,7 @@ class AtlonaPro3PortocolHandler {
|
|||||||
modelType = resp;
|
modelType = resp;
|
||||||
callback.setProperty(AtlonaPro3Constants.PROPERTY_TYPE, modelType);
|
callback.setProperty(AtlonaPro3Constants.PROPERTY_TYPE, modelType);
|
||||||
} else {
|
} else {
|
||||||
logger.warn("Invalid Type response: '{}'", resp);
|
logger.debug("Invalid Type response: '{}'", resp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -845,13 +845,13 @@ class AtlonaPro3PortocolHandler {
|
|||||||
portNbr, AtlonaPro3Constants.CHANNEL_PORTPOWER), OnOffType.OFF);
|
portNbr, AtlonaPro3Constants.CHANNEL_PORTPOWER), OnOffType.OFF);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
logger.warn("Invalid port power response: '{}'", resp);
|
logger.debug("Invalid port power response: '{}'", resp);
|
||||||
}
|
}
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
logger.warn("Invalid port power (can't parse number): '{}'", resp);
|
logger.debug("Invalid port power (can't parse number): '{}'", resp);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.warn("Invalid port power response: '{}'", resp);
|
logger.debug("Invalid port power response: '{}'", resp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -885,7 +885,7 @@ class AtlonaPro3PortocolHandler {
|
|||||||
callback.stateChanged(AtlonaPro3Utilities.createChannelID(AtlonaPro3Constants.GROUP_PORT, outPort,
|
callback.stateChanged(AtlonaPro3Utilities.createChannelID(AtlonaPro3Constants.GROUP_PORT, outPort,
|
||||||
AtlonaPro3Constants.CHANNEL_PORTOUTPUT), new DecimalType(inPort));
|
AtlonaPro3Constants.CHANNEL_PORTOUTPUT), new DecimalType(inPort));
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
logger.warn("Invalid port output response (can't parse number): '{}'", resp);
|
logger.debug("Invalid port output response (can't parse number): '{}'", resp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -918,10 +918,10 @@ class AtlonaPro3PortocolHandler {
|
|||||||
hdmiPortNbr, AtlonaPro3Constants.CHANNEL_PORTMIRRORENABLED), OnOffType.ON);
|
hdmiPortNbr, AtlonaPro3Constants.CHANNEL_PORTMIRRORENABLED), OnOffType.ON);
|
||||||
}
|
}
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
logger.warn("Invalid mirror response (can't parse number): '{}'", resp);
|
logger.debug("Invalid mirror response (can't parse number): '{}'", resp);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.warn("Invalid mirror response: '{}'", resp);
|
logger.debug("Invalid mirror response: '{}'", resp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -941,10 +941,10 @@ class AtlonaPro3PortocolHandler {
|
|||||||
callback.stateChanged(AtlonaPro3Utilities.createChannelID(AtlonaPro3Constants.GROUP_MIRROR, hdmiPortNbr,
|
callback.stateChanged(AtlonaPro3Utilities.createChannelID(AtlonaPro3Constants.GROUP_MIRROR, hdmiPortNbr,
|
||||||
AtlonaPro3Constants.CHANNEL_PORTMIRROR), new DecimalType(0));
|
AtlonaPro3Constants.CHANNEL_PORTMIRROR), new DecimalType(0));
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
logger.warn("Invalid unmirror response (can't parse number): '{}'", resp);
|
logger.debug("Invalid unmirror response (can't parse number): '{}'", resp);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.warn("Invalid unmirror response: '{}'", resp);
|
logger.debug("Invalid unmirror response: '{}'", resp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -965,10 +965,10 @@ class AtlonaPro3PortocolHandler {
|
|||||||
callback.stateChanged(AtlonaPro3Utilities.createChannelID(AtlonaPro3Constants.GROUP_VOLUME, portNbr,
|
callback.stateChanged(AtlonaPro3Utilities.createChannelID(AtlonaPro3Constants.GROUP_VOLUME, portNbr,
|
||||||
AtlonaPro3Constants.CHANNEL_VOLUME), new DecimalType(level));
|
AtlonaPro3Constants.CHANNEL_VOLUME), new DecimalType(level));
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
logger.warn("Invalid volume response (can't parse number): '{}'", resp);
|
logger.debug("Invalid volume response (can't parse number): '{}'", resp);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.warn("Invalid volume response: '{}'", resp);
|
logger.debug("Invalid volume response: '{}'", resp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -995,13 +995,13 @@ class AtlonaPro3PortocolHandler {
|
|||||||
portNbr, AtlonaPro3Constants.CHANNEL_VOLUME_MUTE), OnOffType.OFF);
|
portNbr, AtlonaPro3Constants.CHANNEL_VOLUME_MUTE), OnOffType.OFF);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
logger.warn("Invalid volume mute response: '{}'", resp);
|
logger.debug("Invalid volume mute response: '{}'", resp);
|
||||||
}
|
}
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
logger.warn("Invalid volume mute (can't parse number): '{}'", resp);
|
logger.debug("Invalid volume mute (can't parse number): '{}'", resp);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.warn("Invalid volume mute response: '{}'", resp);
|
logger.debug("Invalid volume mute response: '{}'", resp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user