Commit c500be4e286a58fa81491d40819ef84adf21977c
1 parent
40659a20
Improved logging of profile updates
Showing
1 changed file
with
3 additions
and
1 deletions
... | ... | @@ -210,7 +210,6 @@ public class DefaultTransportService implements TransportService { |
210 | 210 | } |
211 | 211 | records.forEach(record -> { |
212 | 212 | try { |
213 | - log.info("[{}] SessionIdMSB, [{}] SessionIdLSB, records", record.getValue().getSessionIdMSB(), record.getValue().getSessionIdLSB()); | |
214 | 213 | processToTransportMsg(record.getValue()); |
215 | 214 | } catch (Throwable e) { |
216 | 215 | log.warn("Failed to process the notification.", e); |
... | ... | @@ -771,6 +770,7 @@ public class DefaultTransportService implements TransportService { |
771 | 770 | UUID sessionId = new UUID(toSessionMsg.getSessionIdMSB(), toSessionMsg.getSessionIdLSB()); |
772 | 771 | SessionMetaData md = sessions.get(sessionId); |
773 | 772 | if (md != null) { |
773 | + log.trace("[{}] Processing notification: {}", sessionId, toSessionMsg); | |
774 | 774 | SessionMsgListener listener = md.getListener(); |
775 | 775 | transportCallbackExecutor.submit(() -> { |
776 | 776 | if (toSessionMsg.hasGetAttributesResponse()) { |
... | ... | @@ -798,12 +798,14 @@ public class DefaultTransportService implements TransportService { |
798 | 798 | deregisterSession(md.getSessionInfo()); |
799 | 799 | } |
800 | 800 | } else { |
801 | + log.trace("Processing broadcast notification: {}", toSessionMsg); | |
801 | 802 | if (toSessionMsg.hasEntityUpdateMsg()) { |
802 | 803 | TransportProtos.EntityUpdateMsg msg = toSessionMsg.getEntityUpdateMsg(); |
803 | 804 | EntityType entityType = EntityType.valueOf(msg.getEntityType()); |
804 | 805 | if (EntityType.DEVICE_PROFILE.equals(entityType)) { |
805 | 806 | DeviceProfile deviceProfile = deviceProfileCache.put(msg.getData()); |
806 | 807 | if (deviceProfile != null) { |
808 | + log.info("On device profile update: {}", deviceProfile); | |
807 | 809 | onProfileUpdate(deviceProfile); |
808 | 810 | } |
809 | 811 | } else if (EntityType.TENANT_PROFILE.equals(entityType)) { | ... | ... |