Replace the original print function with a self.dprint() function. This should have no impact on existing users. Given that the memory function only prints if the client is in debug mode.
The reason for this change is that some users (like me) subclass the entire MQTTClient class to add additional features. One of the features is that it uses the ulogging module to print instead of regular print statements. The subclass simply overwrites .dprint() with something like this
Replace the original print function with a
self.dprint()
function. This should have no impact on existing users. Given that the memory function only prints if the client is in debug mode.The reason for this change is that some users (like me) subclass the entire MQTTClient class to add additional features. One of the features is that it uses the
ulogging
module to print instead of regular print statements. The subclass simply overwrites.dprint()
with something like thisThis PR ensures that there are no changes needed to the library for users to add the logging module to it.