[api] Remove ClientInfo::get_combined_info() to eliminate heap fragmentation (#10970)

This commit is contained in:
J. Nick Koston
2025-10-02 12:44:30 +13:00
committed by GitHub
parent 638c6cc14e
commit f2aa5a754c
7 changed files with 21 additions and 22 deletions
+2 -1
View File
@@ -177,7 +177,8 @@ void APIServer::loop() {
// Network is down - disconnect all clients
for (auto &client : this->clients_) {
client->on_fatal_error();
ESP_LOGW(TAG, "%s: Network down; disconnect", client->get_client_combined_info().c_str());
ESP_LOGW(TAG, "%s (%s): Network down; disconnect", client->client_info_.name.c_str(),
client->client_info_.peername.c_str());
}
// Continue to process and clean up the clients below
}