3 #include <ccan/tap/tap.h>
6 unsigned tap_log_messages;
7 const char *log_prefix = "";
10 union tdb_attribute tap_log_attr = {
11 .log = { .base = { .attr = TDB_ATTRIBUTE_LOG },
12 .log_fn = tap_log_fn }
15 void tap_log_fn(struct tdb_context *tdb,
16 enum tdb_log_level level, void *priv,
22 diag("tdb log level %u: %s%s", level, log_prefix, message);