diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-21 15:25:10 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-21 15:27:05 -0700 |
commit | a5cdf36c3f8e4bf0aadba1add1ca1f212a8189b0 (patch) | |
tree | cadd607b967e25d6304e153131b19ffe683c993b /source4 | |
parent | ac56fed2f44f6847ad99fbf13c877cb52322087b (diff) | |
download | samba-a5cdf36c3f8e4bf0aadba1add1ca1f212a8189b0.tar.gz samba-a5cdf36c3f8e4bf0aadba1add1ca1f212a8189b0.tar.bz2 samba-a5cdf36c3f8e4bf0aadba1add1ca1f212a8189b0.zip |
s4-samdb: enable ldb tracing when log level >= 10
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb_wrap.c | 4 |
1 files changed, 4 insertions, 0 deletions
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() */ |