Skip to content

Conversation

@aggarw13
Copy link

@aggarw13 aggarw13 commented Jul 16, 2021

The debug-level log that is printed on not receiving any data from the network (when the first byte of an MQTT packet is attempted for reading) can be problematic when the transport interface TransportInterfaceRecv_t function is implemented in non-blocking behavior.

The problem it will cause is overwhelming logging of the message when MQTT_ProcessLoop API is called with a non-zero timeout (or the API is called multiple times with zero timeout but within a loop until some data is achieved). Due to over-logging of this message, the DEBUG logging level configured build of the coreMQTT library will be non-valuable.

This PR removes the problematic log statement.

@aggarw13 aggarw13 merged commit a108af5 into FreeRTOS:main Jul 16, 2021
@aggarw13 aggarw13 deleted the hygiene/remove-debug-log branch July 16, 2021 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants