ctdb-logging: Allow sub-string matching for debug level strings
authorAmitay Isaacs <amitay@gmail.com>
Wed, 11 Nov 2015 05:17:51 +0000 (16:17 +1100)
committerMartin Schwenke <martins@samba.org>
Sun, 15 Nov 2015 23:46:14 +0000 (00:46 +0100)
commit2ddc5274ba9d171d4693d994168eb7072c911568
tree409e8988a93cc28eeb3cabc95f1118d476681aa6
parent64ef27b27f7d343707d30902c70ae63540547d69
ctdb-logging: Allow sub-string matching for debug level strings

This allows for backward compatibility with the current code where
DEBUG_ERR corresponds to "ERR".

Fix the test that relies on "ERR" instead of "ERROR".

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Michael Adam <obnox@samba.org>
ctdb/common/logging.c
ctdb/tests/simple/13_ctdb_setdebug.sh