]> git.ozlabs.org Git - ccan/commit
tdb2: simplify logging levels, rename TDB_DEBUG_* to TDB_LOG_*
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Mar 2011 12:49:20 +0000 (23:19 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Mar 2011 12:49:20 +0000 (23:19 +1030)
commit587982955ca9c61363d6e3004622ee97eda80e4b
tree5e8962420a2387b31743f45c93e7f99e8440291f
parent0aa58f6e6017138a78ce4e86fb758732719acaca
tdb2: simplify logging levels, rename TDB_DEBUG_* to TDB_LOG_*

It was never clear to me which levels should be used for what cases.
I can only usefully distinguish three at the moment:
(1) TDB errors, which render the TDB unreliable.
(2) TDB user errors, caused by API misuse.
(3) TDB notifications of strange behaviour, from which we have recovered.
15 files changed:
ccan/tdb2/check.c
ccan/tdb2/free.c
ccan/tdb2/hash.c
ccan/tdb2/io.c
ccan/tdb2/lock.c
ccan/tdb2/private.h
ccan/tdb2/summary.c
ccan/tdb2/tdb.c
ccan/tdb2/tdb2.h
ccan/tdb2/test/logging.c
ccan/tdb2/test/logging.h
ccan/tdb2/test/run-01-new_database.c
ccan/tdb2/test/run-seed.c
ccan/tdb2/tools/tdbtorture.c
ccan/tdb2/transaction.c