Closed vladak closed 1 year ago
The MQTT client connect()
callback has a log statement. Given that the MQTT handler is setup before the call to connect()
, the callback will be invoked. This will in turn produce a MQTT message to be published, however there is also publish callback that too has a logging statement.. and recursion happens as I sort of anticipated in https://github.com/vladak/shield/issues/3#issuecomment-1350643432 however did not do anything about it.
One straightforward solution would be to use non-default logger in the MQTT callbacks to avoid using the MQTT handler, at the cost of losing the MQTT based logging inside MQTT callbacks.
The recent changes to use MQTT handler cause stack overflow it seems (on QtPy):