From 1994779a5c0a877e97558a454455b17b865a59c8 Mon Sep 17 00:00:00 2001 From: Alberto Miranda Date: Mon, 19 Sep 2022 13:47:02 +0200 Subject: [PATCH] Fix issues with ADM_ping logging output --- src/lib/detail/impl.cpp | 2 +- src/scord/rpc_handlers.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/detail/impl.cpp b/src/lib/detail/impl.cpp index f6272850..d6d3b266 100644 --- a/src/lib/detail/impl.cpp +++ b/src/lib/detail/impl.cpp @@ -166,7 +166,7 @@ ping(const server& srv) { LOGGER_INFO("RPC (ADM_{}) => {{}}", __FUNCTION__); const auto rpc = endp.call("ADM_ping"); - LOGGER_INFO("RPC (ADM_{}) <= {{ retval: {}}}", __FUNCTION__, ADM_SUCCESS); + LOGGER_INFO("RPC (ADM_{}) <= {{retval: {}}}", __FUNCTION__, ADM_SUCCESS); return ADM_SUCCESS; } diff --git a/src/scord/rpc_handlers.cpp b/src/scord/rpc_handlers.cpp index e38f7b84..9ebf5060 100644 --- a/src/scord/rpc_handlers.cpp +++ b/src/scord/rpc_handlers.cpp @@ -43,7 +43,11 @@ ADM_ping(hg_handle_t h) { [[maybe_unused]] margo_instance_id mid = margo_hg_handle_get_instance(h); - LOGGER_INFO("PING(noargs)"); + const auto id = remote_procedure::new_id(); + LOGGER_INFO("RPC ID {} ({}) => {{}}", id, __FUNCTION__); + + LOGGER_INFO("RPC ID {} ({}) <= {{retval: {}}}", id, __FUNCTION__, + ADM_SUCCESS); ret = margo_destroy(h); assert(ret == HG_SUCCESS); -- GitLab