From mboxrd@z Thu Jan 1 00:00:00 1970 From: pcaulfield@sourceware.org Date: 4 Feb 2008 10:54:27 -0000 Subject: [Cluster-devel] cluster/cman/daemon commands.c Message-ID: <20080204105427.4362.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Changes by: pcaulfield at sourceware.org 2008-02-04 10:54:26 Modified files: cman/daemon : commands.c Log message: Change a log_printf() into a syslog() so that the die message always arrives in the log. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/commands.c.diff?cvsroot=cluster&r1=1.82&r2=1.83 --- cluster/cman/daemon/commands.c 2008/01/03 16:35:54 1.82 +++ cluster/cman/daemon/commands.c 2008/02/04 10:54:26 1.83 @@ -1889,7 +1889,8 @@ killmsg = (struct cl_killmsg *)data; P_MEMB("got KILL for node %d\n", killmsg->nodeid); if (killmsg->nodeid == wanted_nodeid) { - log_printf(LOG_INFO, "cman killed by node %d because %s\n", nodeid, + /* Must use syslog directly here or the message will never arrive */ + syslog(LOG_CRIT, "cman killed by node %d because %s\n", nodeid, killmsg_reason(killmsg->reason)); exit(1); }