add log message for mqtt low memory

This commit is contained in:
MichaelDvP
2023-08-31 08:29:08 +02:00
parent 647acf6a68
commit bde06621bd

View File

@@ -598,7 +598,8 @@ bool Mqtt::queue_message(const uint8_t operation, const std::string & topic, con
mqtt_message_id_++;
mqtt_publish_fails_++;
}
return false; // quit, not using MQTT
LOG_DEBUG("%s failed: low memory", operation == Operation::PUBLISH ? "Publish" : operation == Operation::SUBSCRIBE ? "Subscribe" : "Unsubscribe");
return false; // quit
}
uint16_t packet_id = 0;