summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-22 14:25:52 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-22 17:10:06 -0700
commit4a74b2839753aa248f1c60f3e2d1f2441c0ac891 (patch)
treedf21df60a897a56d94ad689a9997468bce9a7fb4 /source4
parent9b752399c11b84c2f671e0dcc6554b65e9d4c1ae (diff)
downloadsamba-4a74b2839753aa248f1c60f3e2d1f2441c0ac891.tar.gz
samba-4a74b2839753aa248f1c60f3e2d1f2441c0ac891.tar.bz2
samba-4a74b2839753aa248f1c60f3e2d1f2441c0ac891.zip
s4-ldb: when tracing, show ldb_set_debug messages
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/common/ldb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c
index ba88e6cd64..e9c924583e 100644
--- a/source4/lib/ldb/common/ldb.c
+++ b/source4/lib/ldb/common/ldb.c
@@ -257,6 +257,9 @@ void ldb_set_errstring(struct ldb_context *ldb, const char *err_string)
talloc_free(ldb->err_string);
}
ldb->err_string = talloc_strdup(ldb, err_string);
+ if (ldb->flags & LDB_FLG_ENABLE_TRACING) {
+ ldb_debug(ldb, LDB_DEBUG_TRACE, "ldb_set_errstring: %s", ldb->err_string);
+ }
}
void ldb_asprintf_errstring(struct ldb_context *ldb, const char *format, ...)