]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: log x-amz-request-id along with the request
authorSeena Fallah <seenafallah@gmail.com>
Wed, 22 May 2024 16:23:22 +0000 (18:23 +0200)
committerSeena Fallah <seenafallah@gmail.com>
Wed, 26 Jun 2024 19:25:06 +0000 (21:25 +0200)
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 <seenafallah@gmail.com>
src/rgw/rgw_process.cc

index 10e544b577df17017649b57ea8dc3db569019d33..1c821667847e07c31e671900fa59a33884391974 100644 (file)
@@ -467,11 +467,12 @@ done:
     *latency = lat;
   }
   dout(1) << "====== req done req=" << hex << req << dec
-         << " op status=" << op_ret
-         << " http_status=" << s->err.http_ret
-         << " latency=" << lat
-         << " ======"
-         << dendl;
+          << " op status=" << op_ret
+          << " http_status=" << s->err.http_ret
+          << " latency=" << lat
+          << " request_id=" << s->trans_id
+          << " ======"
+          << dendl;
 
   return (ret < 0 ? ret : s->err.ret);
 } /* process_request */