ctdb-logging: Remove debug levels DEBUG_ALERT and DEBUG_CRIT
authorMartin Schwenke <martin@meltin.net>
Wed, 8 Oct 2014 03:22:53 +0000 (14:22 +1100)
committerAmitay Isaacs <amitay@samba.org>
Tue, 28 Oct 2014 04:42:04 +0000 (05:42 +0100)
commitf4fc9a153c533968905b8c7945c6615dcd9253d1
tree50cd15eb323422ad4966ce96c5f56f658be78597
parent0eabbb8c2b91b61a23f20e04605fdbd653c5cbcb
ctdb-logging: Remove debug levels DEBUG_ALERT and DEBUG_CRIT

Internally map them to DEBUG_ERR to limit code churn.

This reduces the unwieldy number of debug levels used by CTDB.  ALERT
and CRIT aren't of much use as separate errors, since everything from
ERR up should always be logged.  In future just ERR can be used.

This also improves compatibility with Samba's debug.c system priority
mapping.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/ctdb_logging.c
ctdb/doc/ctdb.1.xml
ctdb/doc/ctdb.7.xml
ctdb/include/ctdb_logging.h
ctdb/server/ctdb_logging.c
ctdb/tests/simple/13_ctdb_setdebug.sh