mirror of
https://github.com/esphome/esphome.git
synced 2026-07-11 01:15:33 +00:00
Restore HELPER_LOG at overflow drain call sites
This commit is contained in:
@@ -153,7 +153,11 @@ APIError APINoiseFrameHelper::loop() {
|
||||
}
|
||||
}
|
||||
|
||||
return this->try_drain_overflow_buffer_();
|
||||
APIError err = this->try_drain_overflow_buffer_();
|
||||
if (err != APIError::OK) {
|
||||
HELPER_LOG("Overflow drain failed with errno %d", errno);
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
||||
/** Read a packet into the rx_buf_.
|
||||
|
||||
@@ -64,7 +64,11 @@ APIError APIPlaintextFrameHelper::loop() {
|
||||
if (state_ != State::DATA) {
|
||||
return APIError::BAD_STATE;
|
||||
}
|
||||
return this->try_drain_overflow_buffer_();
|
||||
APIError err = this->try_drain_overflow_buffer_();
|
||||
if (err != APIError::OK) {
|
||||
HELPER_LOG("Overflow drain failed with errno %d", errno);
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
||||
/** Read a packet into the rx_buf_.
|
||||
|
||||
Reference in New Issue
Block a user