From cc0d3533c1f4bceb0acc07a0146699c45a255e18 Mon Sep 17 00:00:00 2001 From: Abhijat Malviya Date: Wed, 8 Nov 2023 17:00:53 +0530 Subject: [PATCH] DNM: always print xml response --- src/v/cloud_storage_clients/s3_client.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/v/cloud_storage_clients/s3_client.cc b/src/v/cloud_storage_clients/s3_client.cc index 6532c1ab03ebf..fe6ad5ef2dcbf 100644 --- a/src/v/cloud_storage_clients/s3_client.cc +++ b/src/v/cloud_storage_clients/s3_client.cc @@ -908,11 +908,9 @@ iobuf_to_delete_objects_result(iobuf&& buf) { s3_log.error, "DeleteObjects response parse failed: {}", std::current_exception()); - if (s3_log.is_enabled(ss::log_level::trace)) { - std::stringstream outs; - boost::property_tree::write_xml(outs, root); - vlog(s3_log.trace, "Response XML: {}", outs.str()); - } + std::stringstream outs; + boost::property_tree::write_xml(outs, root); + vlog(s3_log.trace, "Response XML: {}", outs.str()); throw; } return result;