Append retcode and its string representation to the log line to facilitate the
diagnosis of sync issues.
Signed-off-by: Oguzhan Ozmen <oozmen@bloomberg.net>
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;