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_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"
</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>