From: Seena Fallah Date: Wed, 26 Jun 2024 19:25:32 +0000 (+0200) Subject: rgw: log op name in req done line X-Git-Tag: v20.0.0~1105^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d6d9a3e3d60b41b0b4dd0b6ea0adc6314510dbb1;p=ceph.git rgw: log op name in req done line This would help to identify the operation used by the request by logging. Signed-off-by: Seena Fallah --- diff --git a/src/rgw/rgw_process.cc b/src/rgw/rgw_process.cc index 1c821667847e..4a598f8f0593 100644 --- a/src/rgw/rgw_process.cc +++ b/src/rgw/rgw_process.cc @@ -458,21 +458,23 @@ done: } else { ldpp_dout(s, 2) << "http status=" << s->err.http_ret << dendl; } - if (handler) - handler->put_op(op); - rest->put_handler(handler); const auto lat = s->time_elapsed(); if (latency) { *latency = lat; } dout(1) << "====== req done req=" << hex << req << dec - << " op status=" << op_ret + << " op=" << (op ? op->name() : "unknown") + << " status=" << op_ret << " http_status=" << s->err.http_ret << " latency=" << lat << " request_id=" << s->trans_id << " ======" << dendl; + if (handler) + handler->put_op(op); + rest->put_handler(handler); + return (ret < 0 ? ret : s->err.ret); } /* process_request */