Merge pull request #25102 from cbodley/wip-rgw-log-http-status

rgw: log http status with op prefix if available

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
Yuri Weinstein 2018-11-16 08:03:09 -08:00 committed by GitHub
commit a6e10a44bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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);