From: Casey Bodley Date: Wed, 14 Nov 2018 18:30:23 +0000 (-0500) Subject: rgw: log http status with op prefix if available X-Git-Tag: v14.1.0~896^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1e8273ffb0fb37523a1fa52ca51c717c03886667;p=ceph.git rgw: log http status with op prefix if available Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_process.cc b/src/rgw/rgw_process.cc index 8205b634df8b..010eea496508 100644 --- a/src/rgw/rgw_process.cc +++ b/src/rgw/rgw_process.cc @@ -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);