]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: improve debugs in RGWAsioClientIO and AsioConnection.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Thu, 6 Oct 2016 12:47:36 +0000 (14:47 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Fri, 21 Oct 2016 20:57:21 +0000 (22:57 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_asio_client.cc
src/rgw/rgw_asio_frontend.cc

index 4beab6f9751eca37c9bd1547bd8d8370a9467276..b098edf6b26b6b819a28ced9c7499da11743b922 100644 (file)
@@ -84,7 +84,7 @@ size_t RGWAsioClientIO::write_data(const char* const buf,
   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;
index 08c8d939a571600c5a64ddaaa90d4518b67d7726..d621a7a63ea6e9b0a639c10217459a003ca7995e 100644 (file)
@@ -84,9 +84,9 @@ class AsioConnection : public std::enable_shared_from_this<AsioConnection> {
     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;
@@ -114,7 +114,7 @@ class AsioConnection : public std::enable_shared_from_this<AsioConnection> {
   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;
     }
   }