From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7938 invoked by alias); 12 Feb 2009 11:54:07 -0000 Received: (qmail 7932 invoked by alias); 12 Feb 2009 11:54:07 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion.fedora.phx.redhat.com Subject: cluster: STABLE3 - cman: Make cman_tool debug -d more effective To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/STABLE3 X-Git-Reftype: branch X-Git-Oldrev: 922f336a2564d1035fd6728c804bc996d3c0b9df X-Git-Newrev: 3fa2aacdfc3eabba832649d1cda0310dc74a43fd From: Christine Caulfield Message-Id: <20090212115342.A434C1201DD@lists.fedorahosted.org> Date: Thu, 12 Feb 2009 11:54:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00443.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=3fa2aacdfc3eabba832649d1cda0310dc74a43fd Commit: 3fa2aacdfc3eabba832649d1cda0310dc74a43fd Parent: 922f336a2564d1035fd6728c804bc996d3c0b9df Author: Christine Caulfield AuthorDate: Thu Feb 12 11:53:02 2009 +0000 Committer: Christine Caulfield CommitterDate: Thu Feb 12 11:53:02 2009 +0000 cman: Make cman_tool debug -d more effective It now switches on LOG_LEVEL_DEBUG in logsys too. Signed-off-by: Christine Caulfield --- 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; }