r6086: default to stderr for error messages in ldb, so we get errors in ldb_connect()
authorAndrew Tridgell <tridge@samba.org>
Mon, 28 Mar 2005 00:37:27 +0000 (00:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:11:18 +0000 (13:11 -0500)
source/lib/ldb/common/ldb_debug.c

index 6ba3f30b2d83665e58b049fb75a4e76e94f0f1da..59f00ccc9665bd49a5df0a4297467d996803b9d3 100644 (file)
@@ -79,7 +79,7 @@ void ldb_debug(struct ldb_context *ldb, enum ldb_debug_level level, const char *
 {
        va_list ap;
        if (ldb->debug_ops.debug == NULL) {
-               return;
+               ldb_set_debug_stderr(ldb);
        }
        va_start(ap, fmt);
        ldb->debug_ops.debug(ldb->debug_ops.context, level, fmt, ap);