diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-22 14:25:52 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-22 17:10:06 -0700 |
commit | 4a74b2839753aa248f1c60f3e2d1f2441c0ac891 (patch) | |
tree | df21df60a897a56d94ad689a9997468bce9a7fb4 /source4/lib/ldb/common | |
parent | 9b752399c11b84c2f671e0dcc6554b65e9d4c1ae (diff) | |
download | samba-4a74b2839753aa248f1c60f3e2d1f2441c0ac891.tar.gz samba-4a74b2839753aa248f1c60f3e2d1f2441c0ac891.tar.bz2 samba-4a74b2839753aa248f1c60f3e2d1f2441c0ac891.zip |
s4-ldb: when tracing, show ldb_set_debug messages
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r-- | source4/lib/ldb/common/ldb.c | 3 |
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, ...) |