From 61f34e2d25058452ab16f9d7ec5fc2776ab135eb Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 21 Feb 2013 08:29:18 +0100 Subject: s3:pylibsmb: make sure we get tevent debug messages Pair-Programmed-With: Michael Adam Signed-off-by: Stefan Metzmacher Signed-off-by: Michael Adam Autobuild-User(master): Michael Adam Autobuild-Date(master): Thu Feb 28 14:34:24 CET 2013 on sn-devel-104 --- source3/libsmb/pylibsmb.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source3/libsmb/pylibsmb.c') diff --git a/source3/libsmb/pylibsmb.c b/source3/libsmb/pylibsmb.c index 900d05212c..4fd5921f23 100644 --- a/source3/libsmb/pylibsmb.c +++ b/source3/libsmb/pylibsmb.c @@ -201,6 +201,7 @@ static bool py_cli_state_setup_ev(struct py_cli_state *self) if (self->ev == NULL) { goto fail; } + samba_tevent_set_debug(self->ev, "pylibsmb_tevent_mt"); tevent_set_trace_callback(self->ev, py_cli_state_trace_callback, self); self->thread_state = talloc_zero(NULL, struct py_cli_thread); @@ -336,7 +337,13 @@ static void py_tevent_signalme(struct tevent_req *req) static bool py_cli_state_setup_ev(struct py_cli_state *self) { self->ev = tevent_context_init(NULL); - return (self->ev != NULL); + if (self->ev == NULL) { + return false; + } + + samba_tevent_set_debug(self->ev, "pylibsmb_tevent"); + + return true; } static int py_tevent_req_wait(struct tevent_context *ev, -- cgit