Restore HELPER_LOG at overflow drain call sites

This commit is contained in:
J. Nick Koston
2026-03-16 12:19:29 -10:00
parent 7846c42730
commit 165175eaf3
2 changed files with 10 additions and 2 deletions
@@ -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_.