1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-25 14:42:21 +01:00

Reduce ESP_LOGCONFIG calls (#9026)

This commit is contained in:
J. Nick Koston
2025-06-08 19:02:30 -05:00
committed by GitHub
parent 80dddb4cae
commit c0b05ada1a
218 changed files with 1569 additions and 931 deletions

View File

@@ -122,16 +122,20 @@ void UDPComponent::loop() {
}
void UDPComponent::dump_config() {
ESP_LOGCONFIG(TAG, "UDP:");
ESP_LOGCONFIG(TAG, " Listen Port: %u", this->listen_port_);
ESP_LOGCONFIG(TAG, " Broadcast Port: %u", this->broadcast_port_);
ESP_LOGCONFIG(TAG,
"UDP:\n"
" Listen Port: %u\n"
" Broadcast Port: %u",
this->listen_port_, this->broadcast_port_);
for (const auto &address : this->addresses_)
ESP_LOGCONFIG(TAG, " Address: %s", address.c_str());
if (this->listen_address_.has_value()) {
ESP_LOGCONFIG(TAG, " Listen address: %s", this->listen_address_.value().str().c_str());
}
ESP_LOGCONFIG(TAG, " Broadcasting: %s", YESNO(this->should_broadcast_));
ESP_LOGCONFIG(TAG, " Listening: %s", YESNO(this->should_listen_));
ESP_LOGCONFIG(TAG,
" Broadcasting: %s\n"
" Listening: %s",
YESNO(this->should_broadcast_), YESNO(this->should_listen_));
}
void UDPComponent::send_packet(const uint8_t *data, size_t size) {