From: Oguzhan Ozmen Date: Wed, 27 May 2026 19:38:37 +0000 (+0000) Subject: rgw/multisite: include error code in object sync failure log message X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c29b9f0c86d93bbbca5c80058db898134b48a991;p=ceph.git rgw/multisite: include error code in object sync failure log message Append retcode and its string representation to the log line to facilitate the diagnosis of sync issues. Signed-off-by: Oguzhan Ozmen --- diff --git a/src/rgw/driver/rados/rgw_data_sync.cc b/src/rgw/driver/rados/rgw_data_sync.cc index 3901e8c8efc..b437ab4252e 100644 --- a/src/rgw/driver/rados/rgw_data_sync.cc +++ b/src/rgw/driver/rados/rgw_data_sync.cc @@ -4495,7 +4495,9 @@ public: if (retcode < 0 && retcode != -ENOENT) { set_status() << "failed to sync obj; retcode=" << retcode; tn->log(0, SSTR("ERROR: failed to sync object: " - << bucket_shard_str{bs} << "/" << key.name)); + << bucket_shard_str{bs} << "/" << key.name + << " retcode=" << retcode + << " (" << cpp_strerror(-retcode) << ")")); if (!ignore_sync_error(retcode)) { error_ss << bucket_shard_str{bs} << "/" << key.name; sync_status = retcode;