[remoteopenhab] Avoid unexpected log for ALIVE SSE message (#13008)
Related to openhab/openhab-core#2983 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
@@ -401,13 +401,16 @@ public class RemoteopenhabRestClient {
|
|||||||
listeners.forEach(listener -> listener.onConnected());
|
listeners.forEach(listener -> listener.onConnected());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
RemoteopenhabEvent event = jsonParser.fromJson(data, RemoteopenhabEvent.class);
|
||||||
|
if ("ALIVE".equals(event.type)) {
|
||||||
|
// ignore ALIVE message
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!"message".equals(name)) {
|
if (!"message".equals(name)) {
|
||||||
logger.debug("Received unhandled event with name '{}' and data '{}'", name, data);
|
logger.debug("Received unhandled event with name '{}' and data '{}'", name, data);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
|
||||||
RemoteopenhabEvent event = jsonParser.fromJson(data, RemoteopenhabEvent.class);
|
|
||||||
String itemName;
|
String itemName;
|
||||||
String thingUID;
|
String thingUID;
|
||||||
RemoteopenhabEventPayload payload;
|
RemoteopenhabEventPayload payload;
|
||||||
|
|||||||
Reference in New Issue
Block a user