Add more BufferedFd logging.

This commit is contained in:
levlam 2023-04-04 15:31:40 +03:00
parent 55223c394f
commit fd217d1b3e
1 changed files with 8 additions and 0 deletions

View File

@ -135,6 +135,14 @@ Result<size_t> BufferedFdBase<FdT>::flush_write() {
write_->advance(x);
result += x;
}
if (result == 0) {
if (write_->empty()) {
LOG(DEBUG) << "Nothing to write to " << get_poll_info().native_fd();
} else {
LOG(DEBUG) << "Can't flush write to " << get_poll_info().native_fd()
<< " with flags = " << get_poll_info().get_flags_local();
}
}
return result;
}