Add a hook for debugging MQTT