better logging

This commit is contained in:
j 2016-04-05 01:38:53 +02:00
parent 99777a78e7
commit 9d1603cfb2
2 changed files with 1 additions and 2 deletions

View file

@ -142,7 +142,7 @@ class LocalNodes(dict):
for key, value in info.properties.items():
key = key.decode()
self[id][key] = value.decode()
logger.debug('add: %s', self[id])
logger.debug('add: %s [%s] (%s:%s)', self[id].get('username', 'anon'), id, self[id]['host'], self[id]['port'])
if state.tasks:
state.tasks.queue('addlocalinfo', self[id])
elif state_change is ServiceStateChange.Removed:

View file

@ -190,7 +190,6 @@ class Tor(object):
self.connected = False
def publish(self):
logger.debug("publish tor node")
if not self.connected:
return False
controller = self.controller