boost::system::error_code ec;
auto bytes = boost::asio::write(socket, boost::asio::buffer(buf, len), ec);
if (ec) {
- derr << "write_data failed with " << ec.message() << dendl;
+ derr << "write_data failed: " << ec.message() << dendl;
throw rgw::io::RestfulClient::Exception(ec.value(), std::system_category());
}
return bytes;
auto cct = env.store->ctx();
if (ec) {
if (ec.category() == beast::http::get_parse_error_category()) {
- ldout(cct, 1) << "parse failed with " << ec.message() << dendl;
+ ldout(cct, 1) << "parse failed: " << ec.message() << dendl;
} else {
- ldout(cct, 1) << "read failed with " << ec.message() << dendl;
+ ldout(cct, 1) << "read failed: " << ec.message() << dendl;
}
write_bad_request();
return;
void on_write(boost::system::error_code ec) {
auto cct = env.store->ctx();
if (ec) {
- ldout(cct, 1) << "write failed with " << ec.message() << dendl;
+ ldout(cct, 1) << "write failed: " << ec.message() << dendl;
}
}