Skip to content
Snippets Groups Projects
Commit d718b66a authored by Simon Désaulniers's avatar Simon Désaulniers
Browse files

python: add missing enable log method

parent 30d5f7be
Branches
Tags
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment