]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: log op name in req done line
authorSeena Fallah <seenafallah@gmail.com>
Wed, 26 Jun 2024 19:25:32 +0000 (21:25 +0200)
committerSeena Fallah <seenafallah@gmail.com>
Wed, 26 Jun 2024 19:49:40 +0000 (21:49 +0200)
This would help to identify the operation used by the request by logging.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
src/rgw/rgw_process.cc

index 1c821667847e07c31e671900fa59a33884391974..4a598f8f05937bfc757b864564f47db983b0728f 100644 (file)
@@ -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 */