3 #include "tap-interface.h"
6 unsigned tap_log_messages
;
7 const char *log_prefix
= "";
11 union tdb_attribute tap_log_attr
= {
12 .log
= { .base
= { .attr
= TDB_ATTRIBUTE_LOG
},
16 void tap_log_fn(struct tdb_context
*tdb
,
17 enum tdb_log_level level
,
19 const char *message
, void *priv
)
24 diag("tdb log level %u: %s: %s%s",
25 level
, tdb_errorstr(ecode
), log_prefix
, message
);
28 log_last
= strdup(message
);