r13768: be less verbose...
authorStefan Metzmacher <metze@samba.org>
Wed, 1 Mar 2006 13:19:10 +0000 (13:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:52:10 +0000 (13:52 -0500)
metze
(This used to be commit 18fe8a6fbb7b01c0c4d4318ca39ac0af9bab5e5f)

source4/lib/db_wrap.c

index 5f4251bb920211b9332a3dfbbee61eeaa79421ca..d2481994c69604fdd9460774917f728b68a90dba 100644 (file)
@@ -49,6 +49,9 @@ static void ldb_wrap_debug(void *context, enum ldb_debug_level level,
        if (DEBUGLEVEL < 4 && level > LDB_DEBUG_WARNING) {
                return;
        }
+       if (DEBUGLEVEL < 2 && level > LDB_DEBUG_ERROR) {
+               return;
+       }
        vasprintf(&s, fmt, ap);
        if (!s) return;
        DEBUG(level, ("ldb: %s\n", s));