From d718b66aad7c6c899a3f8abff05d68d017f02bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20D=C3=A9saulniers?= <sim.desaulniers@gmail.com> Date: Mon, 18 Apr 2016 16:31:29 -0400 Subject: [PATCH] python: add missing enable log method --- python/opendht.pyx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/opendht.pyx b/python/opendht.pyx index 5b7400d9..f226945f 100644 --- a/python/opendht.pyx +++ b/python/opendht.pyx @@ -280,6 +280,12 @@ cdef class DhtRunner(_WithID): cb_obj = {'shutdown':shutdown_cb} ref.Py_INCREF(cb_obj) self.thisptr.shutdown(cpp.Dht.bindShutdownCb(shutdown_callback, <void*>cb_obj)) + def enableLogging(self): + cpp.enableLogging(self.thisptr[0]) + def disableLogging(self): + cpp.disableLogging(self.thisptr[0]) + def enableFileLogging(self, str path): + cpp.enableFileLogging(self.thisptr[0], path) def isRunning(self): return self.thisptr.isRunning() def getStorageLog(self): -- GitLab