tdb2: simplify logging levels, rename TDB_DEBUG_* to TDB_LOG_*
[ccan] / ccan / tdb2 / test / logging.c
index 8284be13439b6dd9f48556a94d934caf3c6671a6..dfb332474a24b3eb462278685a19da2126f01abe 100644 (file)
@@ -13,14 +13,13 @@ union tdb_attribute tap_log_attr = {
 };
 
 void tap_log_fn(struct tdb_context *tdb,
-               enum tdb_debug_level level, void *priv,
+               enum tdb_log_level level, void *priv,
                const char *message)
 {
        if (suppress_logging)
                return;
 
        diag("tdb log level %u: %s%s", level, log_prefix, message);
-       if (level != TDB_DEBUG_TRACE)
-               tap_log_messages++;
+       tap_log_messages++;
 }