]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-scripts: Drop configuration variable CTDB_SCRIPT_DEBUGLEVEL
authorMartin Schwenke <martin@meltin.net>
Mon, 9 Jan 2017 04:26:22 +0000 (15:26 +1100)
committerMartin Schwenke <martins@samba.org>
Mon, 16 Jan 2017 10:57:08 +0000 (11:57 +0100)
The debug() function, which is the only user of this variable, is no
longer used.  It is also dropped.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/functions
ctdb/doc/ctdbd.conf.5.xml

index 9b0c3207533ca34ba3b2091cb2dd32966ee2f80b..f4539685137857258b46901aae1eb437f0198089 100755 (executable)
@@ -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"
index 9aca804b1251df4574fff6d3a6b98550b490f4ec..1259fd3e2d50a5be2e7db82edcb5eec89ae60ef2 100644 (file)
@@ -1683,20 +1683,6 @@ CTDB_SET_MonitorInterval=20
        </listitem>
       </varlistentry>
 
-      <varlistentry>
-       <term>CTDB_SCRIPT_DEBUGLEVEL=<parameter>DEBUGLEVEL</parameter></term>
-       <listitem>
-         <para>
-           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.
-         </para>
-         <para>
-           Default is NOTICE.
-         </para>
-       </listitem>
-      </varlistentry>
-
       <varlistentry>
        <term>CTDB_SUPPRESS_COREFILE=yes|no</term>
        <listitem>