Skip to content

Commit 5484266

Browse files
committed
rgw: log x-amz-request-id along with the request
As this is the identifier from a user to a request it needs to be logged so the admin can identify the request. Fixes: https://tracker.ceph.com/issues/66180 Signed-off-by: Seena Fallah <[email protected]>
1 parent 4d5b2cd commit 5484266

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/rgw/rgw_process.cc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -467,11 +467,12 @@ int process_request(const RGWProcessEnv& penv,
467467
*latency = lat;
468468
}
469469
dout(1) << "====== req done req=" << hex << req << dec
470-
<< " op status=" << op_ret
471-
<< " http_status=" << s->err.http_ret
472-
<< " latency=" << lat
473-
<< " ======"
474-
<< dendl;
470+
<< " op status=" << op_ret
471+
<< " http_status=" << s->err.http_ret
472+
<< " latency=" << lat
473+
<< " request_id=" << s->trans_id
474+
<< " ======"
475+
<< dendl;
475476

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

0 commit comments

Comments
 (0)