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>
This commit is contained in:
Jan Friesse 2012-05-10 09:53:24 +02:00
parent dc5b8981de
commit 0791f44c41

View File

@ -1904,7 +1904,9 @@ static void memb_state_operational_enter (struct totemsrp_instance *instance)
log_printf (instance->totemsrp_log_level_debug,
"entering OPERATIONAL state.");
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->stats.operational_entered++;