3 #include "tap-interface.h"
6 unsigned tap_log_messages
;
7 const char *log_prefix
= "";
11 union ntdb_attribute tap_log_attr
= {
12 .log
= { .base
= { .attr
= NTDB_ATTRIBUTE_LOG
},
16 void tap_log_fn(struct ntdb_context
*ntdb
,
17 enum ntdb_log_level level
,
18 enum NTDB_ERROR ecode
,
19 const char *message
, void *priv
)
24 diag("ntdb log level %u: %s: %s%s",
25 level
, ntdb_errorstr(ecode
), log_prefix
, message
);
28 log_last
= strdup(message
);