Skip to content

Commit bfc56ad

Browse files
authored
Merge pull request ceph#57635 from clwluvw/trans-id
rgw: log x-amz-request-id along with the request Reviewed-by: Jiffin Tony Thottan <[email protected]>
2 parents a0a8d7c + 9b26784 commit bfc56ad

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/rgw/rgw_process.cc

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -460,20 +460,24 @@ int process_request(const RGWProcessEnv& penv,
460460
} else {
461461
ldpp_dout(s, 2) << "http status=" << s->err.http_ret << dendl;
462462
}
463-
if (handler)
464-
handler->put_op(op);
465-
rest->put_handler(handler);
466463

467464
const auto lat = s->time_elapsed();
468465
if (latency) {
469466
*latency = lat;
470467
}
471468
dout(1) << "====== req done req=" << hex << req << dec
472-
<< " op status=" << op_ret
473-
<< " http_status=" << s->err.http_ret
474-
<< " latency=" << lat
475-
<< " ======"
476-
<< dendl;
469+
<< " op=" << (op ? op->name() : "unknown")
470+
<< " bucket=" << s->bucket_name
471+
<< " status=" << op_ret
472+
<< " http_status=" << s->err.http_ret
473+
<< " latency=" << lat
474+
<< " request_id=" << s->trans_id
475+
<< " ======"
476+
<< dendl;
477+
478+
if (handler)
479+
handler->put_op(op);
480+
rest->put_handler(handler);
477481

478482
return (ret < 0 ? ret : s->err.ret);
479483
} /* process_request */

0 commit comments

Comments
 (0)