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/include | |
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/include')
-rw-r--r-- | ctdb/include/ctdb_logging.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ctdb/include/ctdb_logging.h b/ctdb/include/ctdb_logging.h index 1fd61239913..6faf3d947bb 100644 --- a/ctdb/include/ctdb_logging.h +++ b/ctdb/include/ctdb_logging.h @@ -23,8 +23,6 @@ extern const char *debug_extra; enum debug_level { - DEBUG_ALERT = -2, - DEBUG_CRIT = -1, DEBUG_ERR = 0, DEBUG_WARNING = 1, DEBUG_NOTICE = 2, @@ -32,4 +30,8 @@ enum debug_level { DEBUG_DEBUG = 4, }; +/* These are used in many places, so define them here to avoid churn */ +#define DEBUG_ALERT DEBUG_ERR +#define DEBUG_CRIT DEBUG_ERR + #endif /* _CTDB_LOGGING_H_ */ |