[update] Combine log statements to reduce loop blocking (#12857)

This commit is contained in:
J. Nick Koston
2026-01-03 15:01:24 -10:00
committed by GitHub
parent 5f5edf90e9
commit 07a581e13a

View File

@@ -9,8 +9,10 @@ namespace update {
static const char *const TAG = "update";
void UpdateEntity::publish_state() {
ESP_LOGD(TAG, "'%s' - Publishing:", this->name_.c_str());
ESP_LOGD(TAG, " Current Version: %s", this->update_info_.current_version.c_str());
ESP_LOGD(TAG,
"'%s' - Publishing:\n"
" Current Version: %s",
this->name_.c_str(), this->update_info_.current_version.c_str());
if (!this->update_info_.md5.empty()) {
ESP_LOGD(TAG, " Latest Version: %s", this->update_info_.latest_version.c_str());