[Pacemaker] The correction request of the log of booth

yusuke iida yusk.iida at gmail.com
Wed Mar 6 06:13:00 UTC 2013


Hi, Jiaju

There is a request about the log of booth.

I want you to change a log level when a ticket expires into "info" from "debug".

I think that this log is important since it means what occurred.

And I want you to add the following information to log.
 * Which ticket is it?
 * Who had a ticket?

For example, I want you to use the following forms.
info: lease expires ... owner [0] ticket [ticketA]

diff --git a/src/paxos_lease.c b/src/paxos_lease.c
index 74b41b1..8681ecd 100644
--- a/src/paxos_lease.c
+++ b/src/paxos_lease.c
@@ -153,7 +153,8 @@ static void lease_expires(unsigned long data)
        pl_handle_t plh = (pl_handle_t)pl;
        struct paxos_lease_result plr;

-       log_debug("lease expires ...");
+       log_info("lease expires ... owner [%d] ticket [%s]",
+               pl->owner, pl->name);
        pl->owner = -1;
        strcpy(plr.name, pl->name);
        plr.owner = -1;


Regards,
Yusuke

--
----------------------------------------
METRO SYSTEMS CO., LTD

Yusuke Iida
Mail: yusk.iida at gmail.com
----------------------------------------




More information about the Pacemaker mailing list