[ethernet] Remove redundant "ethernet" from log messages (#8966)

This commit is contained in:
Keith Burzinski 2025-06-03 15:43:39 -05:00 committed by GitHub
parent e62d8bfabe
commit 6a225cb4c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -245,33 +245,33 @@ void EthernetComponent::loop() {
switch (this->state_) { switch (this->state_) {
case EthernetComponentState::STOPPED: case EthernetComponentState::STOPPED:
if (this->started_) { if (this->started_) {
ESP_LOGI(TAG, "Starting ethernet connection"); ESP_LOGI(TAG, "Starting connection");
this->state_ = EthernetComponentState::CONNECTING; this->state_ = EthernetComponentState::CONNECTING;
this->start_connect_(); this->start_connect_();
} }
break; break;
case EthernetComponentState::CONNECTING: case EthernetComponentState::CONNECTING:
if (!this->started_) { if (!this->started_) {
ESP_LOGI(TAG, "Stopped ethernet connection"); ESP_LOGI(TAG, "Stopped connection");
this->state_ = EthernetComponentState::STOPPED; this->state_ = EthernetComponentState::STOPPED;
} else if (this->connected_) { } else if (this->connected_) {
// connection established // connection established
ESP_LOGI(TAG, "Connected via Ethernet!"); ESP_LOGI(TAG, "Connected");
this->state_ = EthernetComponentState::CONNECTED; this->state_ = EthernetComponentState::CONNECTED;
this->dump_connect_params_(); this->dump_connect_params_();
this->status_clear_warning(); this->status_clear_warning();
} else if (now - this->connect_begin_ > 15000) { } else if (now - this->connect_begin_ > 15000) {
ESP_LOGW(TAG, "Connecting via ethernet failed! Re-connecting..."); ESP_LOGW(TAG, "Connecting failed; reconnecting");
this->start_connect_(); this->start_connect_();
} }
break; break;
case EthernetComponentState::CONNECTED: case EthernetComponentState::CONNECTED:
if (!this->started_) { if (!this->started_) {
ESP_LOGI(TAG, "Stopped ethernet connection"); ESP_LOGI(TAG, "Stopped connection");
this->state_ = EthernetComponentState::STOPPED; this->state_ = EthernetComponentState::STOPPED;
} else if (!this->connected_) { } else if (!this->connected_) {
ESP_LOGW(TAG, "Connection via Ethernet lost! Re-connecting..."); ESP_LOGW(TAG, "Connection lost; reconnecting");
this->state_ = EthernetComponentState::CONNECTING; this->state_ = EthernetComponentState::CONNECTING;
this->start_connect_(); this->start_connect_();
} }