1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

ctdb-scripts: Update CTDB_SCRIPT_DEBUGLEVEL to be symbolic

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2016-11-23 21:36:36 +11:00 committed by Martin Schwenke
parent 4f9d50e2e3
commit 657f2c687c
3 changed files with 6 additions and 6 deletions

View File

@ -101,7 +101,7 @@ loadconfig () {
# configuration file. # configuration file.
debug () 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 # If there are arguments then echo them. Otherwise expect to
# use stdin, which allows us to pass lots of debug using a # use stdin, which allows us to pass lots of debug using a
# here document. # here document.

View File

@ -1697,15 +1697,15 @@ CTDB_SET_MonitorInterval=20
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term>CTDB_SCRIPT_DEBUGLEVEL=<parameter>NUM</parameter></term> <term>CTDB_SCRIPT_DEBUGLEVEL=<parameter>DEBUGLEVEL</parameter></term>
<listitem> <listitem>
<para> <para>
NUM is the level debugging messages printed by CTDB DEBUGLEVEL is the level debugging messages printed by CTDB
scripts. Setting this to a higher number (e.g. 4) will scripts. Setting this to a higher level (e.g. DEBUG) will
cause some scripts to log more messages. cause some scripts to log more messages.
</para> </para>
<para> <para>
Default is 2. Default is NOTICE.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>

View File

@ -4,7 +4,7 @@
define_test "port 139 down, default tcp checker, debug" define_test "port 139 down, default tcp checker, debug"
export CTDB_SCRIPT_DEBUGLEVEL=4 export CTDB_SCRIPT_DEBUGLEVEL=DEBUG
setup_samba setup_samba
tcp_port_down 139 tcp_port_down 139