fixed small cli logging bugs

master
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:
self.getPeerProfileInstance(peer).addScore(-10)
self.removeOnlinePeer(peer)
if action != 'ping':
if action != 'ping' and not self.shutdown:
logger.warn('Lost connection to ' + peer, terminal=True)
self.getOnlinePeers() # Will only add a new peer to pool if needed
except ValueError:

View File

@ -354,7 +354,7 @@ class Onionr:
Displays a message suggesting help
'''
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):
'''