summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-02-21 08:29:18 +0100
committerMichael Adam <obnox@samba.org>2013-02-28 14:34:22 +0100
commit61f34e2d25058452ab16f9d7ec5fc2776ab135eb (patch)
tree7852097fa4119c0927cfe1244249a7e035307063 /source3/libsmb
parent64d98c532357c71f27bd84539b3f7a14fd0f952b (diff)
downloadsamba-61f34e2d25058452ab16f9d7ec5fc2776ab135eb.tar.gz
samba-61f34e2d25058452ab16f9d7ec5fc2776ab135eb.tar.bz2
samba-61f34e2d25058452ab16f9d7ec5fc2776ab135eb.zip
s3:pylibsmb: make sure we get tevent debug messages
Pair-Programmed-With: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Feb 28 14:34:24 CET 2013 on sn-devel-104
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/pylibsmb.c9
1 files changed, 8 insertions, 1 deletions
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,