From 8f062490aa222e6732e8db67de380ff6a499352d Mon Sep 17 00:00:00 2001
From: Christopher Haine <chaine@hpe.com>
Date: Tue, 21 Sep 2021 09:10:53 -0500
Subject: [PATCH] info join shows assigned appid (jsc/81)

---
 maestro/pool_manager.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/maestro/pool_manager.c b/maestro/pool_manager.c
index 1ceb3da0..a6f7a763 100644
--- a/maestro/pool_manager.c
+++ b/maestro/pool_manager.c
@@ -2368,6 +2368,8 @@ mstro_pm__handle_join_phase2(mstro_event event,
   aid.id = regentry->appid;
   ev.origin_id = &aid;
 
+  INFO("JOIN message received. Caller %s:%d is assigned appid #%" PRIu64 "\n", 
+       ev.join->component_name, ev.join->component_index, regentry->appid);
 
   status = mstro_pm__event_notify_and_continue(
       &ev,
@@ -2398,9 +2400,6 @@ mstro_pm__handle_join(Mstro__Pool__MstroMsg *msg,
   Mstro__Pool__Join *join = msg->join;
   mstro_status status = MSTRO_OK;
   
-  INFO("JOIN message received. Caller %s:%d\n", 
-       join->component_name, join->component_index);
-
   DEBUG("(PM proto version %d) advertises endpoint %s\n",
    join->protocol_version, join->serialized_endpoint);
 
-- 
GitLab