tdb2: simplify logging levels, rename TDB_DEBUG_* to TDB_LOG_*
[ccan] / ccan / tdb2 / tools / tdbtorture.c
index 1696d4a355d1e85bb6dcba7ff72e44dbc26a0d77..5dddf99a7cfa47d8807df251c3bc902a8e890fc5 100644 (file)
@@ -50,15 +50,12 @@ static void tdb_log(struct tdb_context *tdb, enum tdb_debug_level level, void *p
 {
        va_list ap;
 
-       if (level != TDB_DEBUG_TRACE)
-               error_count++;
-
        va_start(ap, format);
        vfprintf(stdout, format, ap);
        va_end(ap);
        fflush(stdout);
 #if 0
-       if (level != TDB_DEBUG_TRACE) {
+       {
                char *ptr;
                signal(SIGUSR1, SIG_IGN);
                asprintf(&ptr,"xterm -e gdb /proc/%d/exe %d", getpid(), getpid());