]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: log http status with op prefix if available 25102/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 14 Nov 2018 18:30:23 +0000 (13:30 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 14 Nov 2018 18:30:23 +0000 (13:30 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_process.cc

index 8205b634df8b88ac5e0047bb5f70385722965863..010eea496508d6c89fce2037a7663800a87890d7 100644 (file)
@@ -240,9 +240,10 @@ done:
   if (op) {
     op_ret = op->get_ret();
     ldpp_dout(op, 2) << "op status=" << op_ret << dendl;
+    ldpp_dout(op, 2) << "http status=" << s->err.http_ret << dendl;
+  } else {
+    ldpp_dout(s, 2) << "http status=" << s->err.http_ret << dendl;
   }
-  ldpp_dout(s, 2) << "http status=" << s->err.http_ret << dendl;
-
   if (handler)
     handler->put_op(op);
   rest->put_handler(handler);