diff options
author | Martin Schwenke <martin@meltin.net> | 2014-10-08 14:22:53 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2014-10-28 05:42:04 +0100 |
commit | f4fc9a153c533968905b8c7945c6615dcd9253d1 (patch) | |
tree | 50cd15eb323422ad4966ce96c5f56f658be78597 /ctdb/common | |
parent | 0eabbb8c2b91b61a23f20e04605fdbd653c5cbcb (diff) | |
download | samba-f4fc9a153c533968905b8c7945c6615dcd9253d1.tar.gz |
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>
Diffstat (limited to 'ctdb/common')
-rw-r--r-- | ctdb/common/ctdb_logging.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ctdb/common/ctdb_logging.c b/ctdb/common/ctdb_logging.c index f6d8df757a9..c79397d03f0 100644 --- a/ctdb/common/ctdb_logging.c +++ b/ctdb/common/ctdb_logging.c @@ -26,8 +26,6 @@ const char *debug_extra = ""; struct debug_levels debug_levels[] = { - {DEBUG_ALERT, "ALERT"}, - {DEBUG_CRIT, "CRIT"}, {DEBUG_ERR, "ERR"}, {DEBUG_WARNING, "WARNING"}, {DEBUG_NOTICE, "NOTICE"}, |