From 19848a9b72389b2e7bdaee0106a4a60e7c595d46 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Tue, 1 Nov 2016 02:08:16 -0400
Subject: [PATCH] python: encode log file name

---
 python/opendht.pyx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/opendht.pyx b/python/opendht.pyx
index 173d8adb..49f45711 100644
--- a/python/opendht.pyx
+++ b/python/opendht.pyx
@@ -302,7 +302,7 @@ cdef class DhtRunner(_WithID):
     def disableLogging(self):
         cpp.disableLogging(self.thisptr.get()[0])
     def enableFileLogging(self, str path):
-        cpp.enableFileLogging(self.thisptr.get()[0], path)
+        cpp.enableFileLogging(self.thisptr.get()[0], path.encode())
     def isRunning(self):
         return self.thisptr.get().isRunning()
     def getStorageLog(self):
-- 
GitLab