mirror of
https://github.com/esphome/esphome.git
synced 2025-09-11 15:52:20 +01:00
Reduce loop enable/disable log spam by using very verbose level (#9267)
This commit is contained in:
@@ -149,7 +149,7 @@ void Component::mark_failed() {
|
||||
}
|
||||
void Component::disable_loop() {
|
||||
if ((this->component_state_ & COMPONENT_STATE_MASK) != COMPONENT_STATE_LOOP_DONE) {
|
||||
ESP_LOGD(TAG, "%s loop disabled", this->get_component_source());
|
||||
ESP_LOGVV(TAG, "%s loop disabled", this->get_component_source());
|
||||
this->component_state_ &= ~COMPONENT_STATE_MASK;
|
||||
this->component_state_ |= COMPONENT_STATE_LOOP_DONE;
|
||||
App.disable_component_loop_(this);
|
||||
@@ -157,7 +157,7 @@ void Component::disable_loop() {
|
||||
}
|
||||
void Component::enable_loop() {
|
||||
if ((this->component_state_ & COMPONENT_STATE_MASK) == COMPONENT_STATE_LOOP_DONE) {
|
||||
ESP_LOGD(TAG, "%s loop enabled", this->get_component_source());
|
||||
ESP_LOGVV(TAG, "%s loop enabled", this->get_component_source());
|
||||
this->component_state_ &= ~COMPONENT_STATE_MASK;
|
||||
this->component_state_ |= COMPONENT_STATE_LOOP;
|
||||
App.enable_component_loop_(this);
|
||||
|
Reference in New Issue
Block a user