Closed
Description
There is a lot blocks in MQTT
that go like this:
if self.logger is not None:
self.logger.debug("Setting last will properties")
The check for the logger makes the code more difficult to read. Setting a logger with NullHandler
by default and replacing the handler with StreamHandler
in enable_logger()
would avoid these contructs.