public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - cman: Make cman_tool debug -d<x> more effective
@ 2009-02-12 11:54 Christine Caulfield
  0 siblings, 0 replies; only message in thread
From: Christine Caulfield @ 2009-02-12 11:54 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=3fa2aacdfc3eabba832649d1cda0310dc74a43fd
Commit:        3fa2aacdfc3eabba832649d1cda0310dc74a43fd
Parent:        922f336a2564d1035fd6728c804bc996d3c0b9df
Author:        Christine Caulfield <ccaulfie@redhat.com>
AuthorDate:    Thu Feb 12 11:53:02 2009 +0000
Committer:     Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Thu Feb 12 11:53:02 2009 +0000

cman: Make cman_tool debug -d<x> more effective

It now switches on LOG_LEVEL_DEBUG in logsys too.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
 cman/daemon/logging.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/cman/daemon/logging.c b/cman/daemon/logging.c
index ad3359f..c18e40f 100644
--- a/cman/daemon/logging.c
+++ b/cman/daemon/logging.c
@@ -21,5 +21,9 @@ int subsys_mask = 0;
 
 void set_debuglog(int subsystems)
 {
+	if (subsystems)
+		logsys_config_subsys_set(CMAN_NAME, 0, LOG_LEVEL_DEBUG);
+	else
+		logsys_config_subsys_set(CMAN_NAME, 0, LOG_LEVEL_INFO);
 	subsys_mask = subsystems;
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-12 11:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-12 11:54 cluster: STABLE3 - cman: Make cman_tool debug -d<x> more effective Christine Caulfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).