[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/cman/daemon commands.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield 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);
 		}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]