little log
This commit is contained in:
1 parent
eccb0efca3
commit
5bd9170800
1 file changed
+2
@@ -78,8 +78,10 @@ public class MqttConfig extends TextWebSocketHandler {
|
||||
if (topic.equals(eventTopic)) {
|
||||
if ("online".equalsIgnoreCase(payload)) {
|
||||
swordIsOnline.set(true);
|
||||
logger.info("sword is online");
|
||||
} else if ("offline".equalsIgnoreCase(payload)) {
|
||||
swordIsOnline.set(false);
|
||||
logger.info("sword is offline");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user