Skip to content

Commit

Permalink
[samsungtv] Fix reconnect after first connection to TV is lost (openh…
Browse files Browse the repository at this point in the history
…ab#11487)

* Fix reconnect after first connection to TV is lost.

Fixes openhab#7055

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Reduced log level to TRACE for logging of entered methods several times per second.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
  • Loading branch information
jlaur authored and Nemer_Daud committed Jan 28, 2022
1 parent 52fb273 commit 8df49dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ public void remoteDeviceRemoved(@Nullable Registry registry, @Nullable RemoteDev
logger.debug("Device removed: udn={}", upnpUDN);
shutdown();
putOffline();
checkCreateManualConnection();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public boolean isUpnp() {

@Override
public void handleCommand(String channel, Command command) {
logger.debug("Received channel: {}, command: {}", channel, command);
logger.trace("Received channel: {}, command: {}", channel, command);

if (!started) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public List<String> getSupportedChannelNames() {
supported = new ArrayList<>(supported);
supported.addAll(extraSupportedCommandsWebSocket);
}
logger.debug("getSupportedChannelNames: {}", supported);
logger.trace("getSupportedChannelNames: {}", supported);
return supported;
}

Expand Down Expand Up @@ -254,7 +254,7 @@ public boolean isUpnp() {

@Override
public void handleCommand(String channel, Command command) {
logger.debug("Received channel: {}, command: {}", channel, command);
logger.trace("Received channel: {}, command: {}", channel, command);
if (command == RefreshType.REFRESH) {
return;
}
Expand Down

0 comments on commit 8df49dc

Please sign in to comment.