fixed small cli logging bugs
This commit is contained in:
parent
12227b6bcb
commit
5cee375b02
@ -317,7 +317,7 @@ class OnionrCommunicatorDaemon:
|
|||||||
try:
|
try:
|
||||||
self.getPeerProfileInstance(peer).addScore(-10)
|
self.getPeerProfileInstance(peer).addScore(-10)
|
||||||
self.removeOnlinePeer(peer)
|
self.removeOnlinePeer(peer)
|
||||||
if action != 'ping':
|
if action != 'ping' and not self.shutdown:
|
||||||
logger.warn('Lost connection to ' + peer, terminal=True)
|
logger.warn('Lost connection to ' + peer, terminal=True)
|
||||||
self.getOnlinePeers() # Will only add a new peer to pool if needed
|
self.getOnlinePeers() # Will only add a new peer to pool if needed
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
@ -354,7 +354,7 @@ class Onionr:
|
|||||||
Displays a message suggesting help
|
Displays a message suggesting help
|
||||||
'''
|
'''
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
logger.info('Do ' + logger.colors.bold + sys.argv[0] + ' --help' + logger.colors.reset + logger.colors.fg.green + ' for Onionr help.')
|
logger.info('Do ' + logger.colors.bold + sys.argv[0] + ' --help' + logger.colors.reset + logger.colors.fg.green + ' for Onionr help.', terminal=True)
|
||||||
|
|
||||||
def start(self, input = False, override = False):
|
def start(self, input = False, override = False):
|
||||||
'''
|
'''
|
||||||
|
Loading…
Reference in New Issue
Block a user