1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

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 <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher 2023-01-31 16:25:40 +01:00 committed by Andreas Schneider
parent 0031a102c3
commit 24120728bb

View File

@ -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);
}