Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
# configuration file.
debug ()
{
- if [ "${CTDB_SCRIPT_DEBUGLEVEL:-2}" -ge 4 ] ; then
+ 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.
</varlistentry>
<varlistentry>
- <term>CTDB_SCRIPT_DEBUGLEVEL=<parameter>NUM</parameter></term>
+ <term>CTDB_SCRIPT_DEBUGLEVEL=<parameter>DEBUGLEVEL</parameter></term>
<listitem>
<para>
- NUM is the level debugging messages printed by CTDB
- scripts. Setting this to a higher number (e.g. 4) will
+ 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 2.
+ Default is NOTICE.
</para>
</listitem>
</varlistentry>
define_test "port 139 down, default tcp checker, debug"
-export CTDB_SCRIPT_DEBUGLEVEL=4
+export CTDB_SCRIPT_DEBUGLEVEL=DEBUG
setup_samba
tcp_port_down 139