A logging handler can be used that would send the messages to a MQTT topic, making it easier to observe what is going on even without serial console.