-
While exploring some logs, I found that in core-data logs there is no log recorded that it is subscribing to an X topic, while mqtt-broker is able to receive the subscribe request from core-data for an x topic.I need to know if this is some implementation behavior or I'm missing some conceptual understanding. Description
While checking through logs I found that there is no logging recorded for core-data that it is subscribing to edgex/events/device/#, where as I can see that edgex-mqtt-broker has recorded that it is receiving a subscription request to the topic edgex/events/device/# So here is some edgex-mqtt broker logs: // Core-data subscribed to mqtt-broker
edgex-mqtt-broker | 1721115601: New connection from 172.18.0.12:36492 on port 1883.
edgex-mqtt-broker | 1721115601: New client connected from 172.18.0.12:36492 as core-data (p2, c1, k10).
edgex-mqtt-broker | 1721115601: No will message specified.
edgex-mqtt-broker | 1721115601: Sending CONNACK to core-data (0, 0)
edgex-mqtt-broker | 1721115601: Received SUBSCRIBE from core-data
edgex-mqtt-broker | 1721115601: edgex/events/device/# (QoS 0)
edgex-mqtt-broker | 1721115601: core-data 0 edgex/events/device/#
edgex-mqtt-broker | 1721115601: Sending SUBACK to core-data Here I want to know if core-data does not record logging for subscribing to events ? because it could see other services are able to subscribe to a particular topic and we can see the logging record for it. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Please let me know if any further information is needed. Thanks |
Beta Was this translation helpful? Give feedback.
-
you are right. we are not logging anything about the core-data subscription. please feel free to open a PR to add the proper log you want to see. |
Beta Was this translation helpful? Give feedback.
-
Hello @cloudxxx8, Thanks for your response. I'm going through the guidelines for contributing this project from Commit Message Guidelines & Committing Code Guidelines Edit: I have created PR#4840 |
Beta Was this translation helpful? Give feedback.
you are right. we are not logging anything about the core-data subscription.
https://github.com/edgexfoundry/edgex-go/blob/9dd757975a2486f93e2289e3629aab843f36bcb7/internal/core/data/controller/messaging/subscriber.go#L32
please feel free to open a PR to add the proper log you want to see.