mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +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:
parent
4f9d50e2e3
commit
657f2c687c
@ -101,7 +101,7 @@ loadconfig () {
|
||||
# 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.
|
||||
|
@ -1697,15 +1697,15 @@ CTDB_SET_MonitorInterval=20
|
||||
</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>
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user