From 540ece3f77443d97ae442eaa35137ad399d4bfca Mon Sep 17 00:00:00 2001 From: Alberto Miranda Date: Fri, 7 Oct 2022 17:28:48 +0200 Subject: [PATCH] ADM_register_adhoc_storage: Fix logging entries --- src/lib/detail/impl.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/lib/detail/impl.cpp b/src/lib/detail/impl.cpp index e8188d7a..1d7f593c 100644 --- a/src/lib/detail/impl.cpp +++ b/src/lib/detail/impl.cpp @@ -324,7 +324,7 @@ register_adhoc_storage(const server& srv, const job& job, const auto rpc_id = ::api::remote_procedure::new_id(); auto endp = rpc_client.lookup(srv.address()); - LOGGER_INFO("rpc id: name: {} from: {} => " + LOGGER_INFO("rpc id: {} name: {} from: {} => " "body: {{job: {}}}", rpc_id, std::quoted("ADM_"s + __FUNCTION__), std::quoted(rpc_client.self_address()), job); @@ -343,8 +343,8 @@ register_adhoc_storage(const server& srv, const job& job, const auto retval = static_cast(out.retval); LOGGER_ERROR("rpc id: {} name: {} from: {} <= " "body: {{retval: {}}} [op_id: {}]", - rpc_id, std::quoted("ADM_"s + __FUNCTION__), retval, - out.op_id); + rpc_id, std::quoted("ADM_"s + __FUNCTION__), + std::quoted(rpc_client.self_address()), retval, out.op_id); return tl::make_unexpected(retval); } @@ -354,9 +354,10 @@ register_adhoc_storage(const server& srv, const job& job, rpc_adhoc_storage.id() = out.server_id; LOGGER_INFO("rpc id: {} name: {} from: {} <= " - "body: {{retval: {}}} [op_id: {}]", - rpc_id, std::quoted("ADM_"s + __FUNCTION__), ADM_SUCCESS, - out.op_id); + "body: {{retval: {}, server_id: {}}} [op_id: {}]", + rpc_id, std::quoted("ADM_"s + __FUNCTION__), + std::quoted(rpc_client.self_address()), ADM_SUCCESS, + out.server_id, out.op_id); return rpc_adhoc_storage; } -- GitLab