This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: STABLE3 - cman: enable timestamp on logging by default
- From: "Fabio M. Di Nitto" <fabbione at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Wed, 4 Mar 2009 10:26:07 +0000 (UTC)
- Subject: cluster: STABLE3 - cman: enable timestamp on logging by default
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=8d81506e247d5471301a24132e9a6ae1d19c6884
Commit: 8d81506e247d5471301a24132e9a6ae1d19c6884
Parent: de4bd890114c9e9434af4885ec4f925ac7d38610
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Wed Mar 4 11:24:21 2009 +0100
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Wed Mar 4 11:24:21 2009 +0100
cman: enable timestamp on logging by default
as agreed on the many logging discussions, turn on timestamp.
Fix bz#483613
(requires corosync svn1790 at least)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
cman/daemon/cman-preconfig.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c
index 65a8494..c7a9837 100644
--- a/cman/daemon/cman-preconfig.c
+++ b/cman/daemon/cman-preconfig.c
@@ -757,6 +757,11 @@ static void add_cman_overrides(struct objdb_iface_ver0 *objdb)
LOGDIR "/cman.log", strlen(LOGDIR "/cman.log")+1);
}
+ if (objdb_get_string(objdb, object_handle, "timestamp", &logstr)) {
+ objdb->object_key_create(object_handle, "timestamp", strlen("timestamp"),
+ "on", strlen("on")+1);
+ }
+
if (debug_mask) {
objdb->object_key_create(object_handle, "to_stderr", strlen("to_stderr"),
"yes", strlen("yes")+1);