Fix logging utf8 chars in connections
This commit is contained in:
parent
566b689ca6
commit
ee30f78ab0
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ class Connection(object):
|
||||||
return "<%s>" % self.__str__()
|
return "<%s>" % self.__str__()
|
||||||
|
|
||||||
def log(self, text):
|
def log(self, text):
|
||||||
self.server.log.debug("%s > %s" % (self.name, text))
|
self.server.log.debug("%s > %s" % (self.name, text.decode("utf8")))
|
||||||
|
|
||||||
def getValidSites(self):
|
def getValidSites(self):
|
||||||
return [key for key, val in self.server.tor_manager.site_onions.items() if val == self.target_onion]
|
return [key for key, val in self.server.tor_manager.site_onions.items() if val == self.target_onion]
|
||||||
|
|
Loading…
Reference in a new issue