fixed small cli logging bugs

This commit is contained in:
Kevin Froman 2019-06-20 16:59:36 -05:00
parent 12227b6bcb
commit 5cee375b02
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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):
''' '''