From 1e8273ffb0fb37523a1fa52ca51c717c03886667 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 14 Nov 2018 13:30:23 -0500 Subject: [PATCH] rgw: log http status with op prefix if available Signed-off-by: Casey Bodley --- src/rgw/rgw_process.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_process.cc b/src/rgw/rgw_process.cc index 8205b634df8..010eea49650 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); -- 2.39.5