summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/db_wrap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/db_wrap.c b/source4/lib/db_wrap.c
index 5f4251bb92..d2481994c6 100644
--- a/source4/lib/db_wrap.c
+++ b/source4/lib/db_wrap.c
@@ -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));