Explorar o código

Include ringid in processor joined log message

This should help correlate syslog entires with their blackbox
counterparts.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Andrew Beekhof <andrew@beekhof.net>
Jan Friesse %!s(int64=13) %!d(string=hai) anos
pai
achega
0791f44c41
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      exec/totemsrp.c

+ 3 - 1
exec/totemsrp.c

@@ -1904,7 +1904,9 @@ static void memb_state_operational_enter (struct totemsrp_instance *instance)
 	log_printf (instance->totemsrp_log_level_debug,
 	log_printf (instance->totemsrp_log_level_debug,
 		"entering OPERATIONAL state.");
 		"entering OPERATIONAL state.");
 	log_printf (instance->totemsrp_log_level_notice,
 	log_printf (instance->totemsrp_log_level_notice,
-		"A processor joined or left the membership and a new membership was formed.");
+		"A processor joined or left the membership and a new membership (%s:%lld) was formed.",
+		totemip_print (&instance->my_ring_id.rep),
+		instance->my_ring_id.seq);
 	instance->memb_state = MEMB_STATE_OPERATIONAL;
 	instance->memb_state = MEMB_STATE_OPERATIONAL;
 
 
 	instance->stats.operational_entered++;
 	instance->stats.operational_entered++;