Skip to content

Commit d6d9a3e

Browse files
committed
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 <[email protected]>
1 parent 5484266 commit d6d9a3e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/rgw/rgw_process.cc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,21 +458,23 @@ int process_request(const RGWProcessEnv& penv,
458458
} else {
459459
ldpp_dout(s, 2) << "http status=" << s->err.http_ret << dendl;
460460
}
461-
if (handler)
462-
handler->put_op(op);
463-
rest->put_handler(handler);
464461

465462
const auto lat = s->time_elapsed();
466463
if (latency) {
467464
*latency = lat;
468465
}
469466
dout(1) << "====== req done req=" << hex << req << dec
470-
<< " op status=" << op_ret
467+
<< " op=" << (op ? op->name() : "unknown")
468+
<< " status=" << op_ret
471469
<< " http_status=" << s->err.http_ret
472470
<< " latency=" << lat
473471
<< " request_id=" << s->trans_id
474472
<< " ======"
475473
<< dendl;
476474

475+
if (handler)
476+
handler->put_op(op);
477+
rest->put_handler(handler);
478+
477479
return (ret < 0 ? ret : s->err.ret);
478480
} /* process_request */

0 commit comments

Comments
 (0)