From a5cdf36c3f8e4bf0aadba1add1ca1f212a8189b0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 21 Sep 2009 15:25:10 -0700 Subject: s4-samdb: enable ldb tracing when log level >= 10 --- source4/lib/ldb_wrap.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/lib/ldb_wrap.c') diff --git a/source4/lib/ldb_wrap.c b/source4/lib/ldb_wrap.c index 15cf11f942..74502afde2 100644 --- a/source4/lib/ldb_wrap.c +++ b/source4/lib/ldb_wrap.c @@ -169,6 +169,10 @@ struct ldb_context *ldb_wrap_connect(TALLOC_CTX *mem_ctx, flags |= LDB_FLG_NOSYNC; } + if (DEBUGLVL(10)) { + flags |= LDB_FLG_ENABLE_TRACING; + } + /* we usually want Samba databases to be private. If we later find we need one public, we will need to add a parameter to ldb_wrap_connect() */ -- cgit