diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-02 09:06:49 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-02 09:06:49 -0700 |
commit | 95ba3446d936213683d604eb545710124b9bf689 (patch) | |
tree | 147448da11eb1d73a11e61f99f861157c59e00ab /src/main/java/org/traccar/broadcast | |
parent | 8c4499a8fa5e30a498d9357b16b56cd65fbe1e39 (diff) | |
download | trackermap-server-95ba3446d936213683d604eb545710124b9bf689.tar.gz trackermap-server-95ba3446d936213683d604eb545710124b9bf689.tar.bz2 trackermap-server-95ba3446d936213683d604eb545710124b9bf689.zip |
Add broadcast logging
Diffstat (limited to 'src/main/java/org/traccar/broadcast')
-rw-r--r-- | src/main/java/org/traccar/broadcast/MulticastBroadcastService.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/broadcast/MulticastBroadcastService.java b/src/main/java/org/traccar/broadcast/MulticastBroadcastService.java index ac0fcbd86..81b6cd5ec 100644 --- a/src/main/java/org/traccar/broadcast/MulticastBroadcastService.java +++ b/src/main/java/org/traccar/broadcast/MulticastBroadcastService.java @@ -159,6 +159,7 @@ public class MulticastBroadcastService implements BroadcastService { DatagramPacket packet = new DatagramPacket(receiverBuffer, receiverBuffer.length); socket.receive(packet); String data = new String(packet.getData(), 0, packet.getLength(), StandardCharsets.UTF_8); + LOGGER.info("Broadcast received: {}", data); handleMessage(objectMapper.readValue(data, BroadcastMessage.class)); } socket.leaveGroup(address); |