This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
Cluster Project branch, master, updated. gfs-kernel_0_1_22-219-gbf52c81
- From: fabbione at sourceware dot org
- To: cluster-cvs at sources dot redhat dot com, cluster-devel at redhat dot com
- Date: 28 Apr 2008 06:14:49 -0000
- Subject: Cluster Project branch, master, updated. gfs-kernel_0_1_22-219-gbf52c81
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cluster Project".
http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=bf52c81764cc41244220426f99a74c15dc43efe2
The branch, master has been updated
via bf52c81764cc41244220426f99a74c15dc43efe2 (commit)
from 84ebd946dff09b1ed3c75ddfb7343b41453eb32b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit bf52c81764cc41244220426f99a74c15dc43efe2
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
Date: Mon Apr 28 08:13:11 2008 +0200
[CMAN] Setup logging file
Align cman logging options with the other subsystems and
set logging file to LOGDIR "/cman.log".
It is still possible to disable the feature by using the
standard to_file: no config option (default to yes).
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
-----------------------------------------------------------------------
Summary of changes:
cman/daemon/cman-preconfig.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c
index 4f307f6..566fd46 100644
--- a/cman/daemon/cman-preconfig.c
+++ b/cman/daemon/cman-preconfig.c
@@ -643,6 +643,16 @@ static void add_cman_overrides(struct objdb_iface_ver0 *objdb)
objdb->object_key_create(logger_object_handle, "subsys", strlen("subsys"),
"CMAN", strlen("CMAN")+1);
+ if (objdb_get_string(objdb, object_handle, "to_file", &logstr)) {
+ objdb->object_key_create(object_handle, "to_file", strlen("to_file"),
+ "yes", strlen("yes")+1);
+ }
+
+ if (objdb_get_string(objdb, object_handle, "logfile", &logstr)) {
+ objdb->object_key_create(object_handle, "logfile", strlen("logfile"),
+ LOGDIR "/cman.log", strlen(LOGDIR "/cman.log")+1);
+ }
+
if (debug_mask) {
objdb->object_key_create(logger_object_handle, "debug", strlen("debug"),
"on", strlen("on")+1);
hooks/post-receive
--
Cluster Project