From 24120728bb26ae814292e2e8c06eaa4707bb18b6 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 31 Jan 2023 16:25:40 +0100 Subject: [PATCH] ldb: call tevent_set_max_debug_level(TEVENT_DEBUG_TRACE) together with ldb_tevent_debug() This means ldb_tevent_debug() is only called for TEVENT_DEBUG_TRACE. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- lib/ldb/common/ldb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ldb/common/ldb.c b/lib/ldb/common/ldb.c index 6145bc7e500..fe7c4d18f5c 100644 --- a/lib/ldb/common/ldb.c +++ b/lib/ldb/common/ldb.c @@ -117,6 +117,7 @@ struct ldb_context *ldb_init(TALLOC_CTX *mem_ctx, struct tevent_context *ev_ctx) return NULL; } tevent_set_debug(ev_ctx, ldb_tevent_debug, ldb); + tevent_set_max_debug_level(ev_ctx, TEVENT_DEBUG_TRACE); tevent_loop_allow_nesting(ev_ctx); } @@ -745,6 +746,7 @@ struct ldb_handle *ldb_handle_new(TALLOC_CTX *mem_ctx, struct ldb_context *ldb) return NULL; } tevent_set_debug(h->event_context, ldb_tevent_debug, ldb); + tevent_set_max_debug_level(h->event_context, TEVENT_DEBUG_TRACE); tevent_loop_allow_nesting(h->event_context); }