s3:pylibsmb: make sure we get tevent debug messages
authorStefan Metzmacher <metze@samba.org>
Thu, 21 Feb 2013 07:29:18 +0000 (08:29 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Feb 2013 07:59:40 +0000 (08:59 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/libsmb/pylibsmb.c

index 900d05212c54516110717c86dd807f51f72cb311..176f2234343ecc5d11f89d660d24512dffa58713 100644 (file)
@@ -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");
        tevent_set_trace_callback(self->ev, py_cli_state_trace_callback, self);
 
        self->thread_state = talloc_zero(NULL, struct py_cli_thread);
@@ -335,7 +336,7 @@ 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);
+       self->ev = samba_tevent_context_init(NULL);
        return (self->ev != NULL);
 }