From ec3415e5830399d145422ceb35a44531d27ace98 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 9 Jan 2017 15:26:22 +1100 Subject: [PATCH] ctdb-scripts: Drop configuration variable CTDB_SCRIPT_DEBUGLEVEL The debug() function, which is the only user of this variable, is no longer used. It is also dropped. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/config/functions | 20 -------------------- ctdb/doc/ctdbd.conf.5.xml | 14 -------------- 2 files changed, 34 deletions(-) diff --git a/ctdb/config/functions b/ctdb/config/functions index 9b0c3207533..f4539685137 100755 --- a/ctdb/config/functions +++ b/ctdb/config/functions @@ -97,26 +97,6 @@ loadconfig () { ############################################################## -# CTDB_SCRIPT_DEBUGLEVEL can be overwritten by setting it in a -# configuration file. -debug () -{ - if [ "${CTDB_SCRIPT_DEBUGLEVEL:-NOTICE}" = "DEBUG" ] ; then - # If there are arguments then echo them. Otherwise expect to - # use stdin, which allows us to pass lots of debug using a - # here document. - if [ -n "$1" ] ; then - echo "DEBUG: $*" - else - sed -e 's@^@DEBUG: @' - fi - else - if [ -z "$1" ] ; then - cat >/dev/null - fi - fi -} - die () { _msg="$1" diff --git a/ctdb/doc/ctdbd.conf.5.xml b/ctdb/doc/ctdbd.conf.5.xml index 9aca804b125..1259fd3e2d5 100644 --- a/ctdb/doc/ctdbd.conf.5.xml +++ b/ctdb/doc/ctdbd.conf.5.xml @@ -1683,20 +1683,6 @@ CTDB_SET_MonitorInterval=20 - - CTDB_SCRIPT_DEBUGLEVEL=DEBUGLEVEL - - - DEBUGLEVEL is the level debugging messages printed by CTDB - scripts. Setting this to a higher level (e.g. DEBUG) will - cause some scripts to log more messages. - - - Default is NOTICE. - - - - CTDB_SUPPRESS_COREFILE=yes|no -- 2.47.2