From ffad32d5c19084013c69c110763aa6dea98c2bfb Mon Sep 17 00:00:00 2001 From: Alberto Miranda Date: Thu, 17 Nov 2022 12:26:09 +0100 Subject: [PATCH] ADM_update_adhoc_storage(): Fix missing arguments in log statement --- src/lib/detail/impl.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/detail/impl.cpp b/src/lib/detail/impl.cpp index a98db77a..6e5bd922 100644 --- a/src/lib/detail/impl.cpp +++ b/src/lib/detail/impl.cpp @@ -417,11 +417,10 @@ update_adhoc_storage(const server& srv, const auto rpc_id = ::api::remote_procedure::new_id(); auto endp = rpc_client.lookup(srv.address()); - LOGGER_INFO("rpc id: name: {} from: {} => " - "body: {{id: {}, adhoc_ctx{}}}", + LOGGER_INFO("rpc id: {} name: {} from: {} => " + "body: {{adhoc_storage_id: {}}}", rpc_id, std::quoted("ADM_"s + __FUNCTION__), - std::quoted(rpc_client.self_address()), adhoc_storage.id(), - adhoc_storage_ctx); + std::quoted(rpc_client.self_address()), adhoc_storage.id()); const auto rpc_ctx = api::convert(adhoc_storage_ctx); @@ -433,15 +432,16 @@ update_adhoc_storage(const server& srv, if(const auto rv = admire::error_code{out.retval}; !rv) { LOGGER_ERROR("rpc id: {} name: {} from: {} <= " "body: {{retval: {}}} [op_id: {}]", - rpc_id, std::quoted("ADM_"s + __FUNCTION__), rv, - out.op_id); + rpc_id, std::quoted("ADM_"s + __FUNCTION__), + std::quoted(rpc.origin()), rv, out.op_id); return rv; } LOGGER_INFO("rpc id: {} name: {} from: {} <= " "body: {{retval: {}}} [op_id: {}]", rpc_id, std::quoted("ADM_"s + __FUNCTION__), - admire::error_code::success, out.op_id); + std::quoted(rpc.origin()), admire::error_code::success, + out.op_id); return admire::error_code::success; } -- GitLab