From 5cee375b028906b133c4519d0cdaff0ac914c297 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Thu, 20 Jun 2019 16:59:36 -0500 Subject: [PATCH] fixed small cli logging bugs --- onionr/communicator.py | 2 +- onionr/onionr.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/onionr/communicator.py b/onionr/communicator.py index 370a4981..d59b76da 100755 --- a/onionr/communicator.py +++ b/onionr/communicator.py @@ -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: diff --git a/onionr/onionr.py b/onionr/onionr.py index e94e35b8..4030aae1 100755 --- a/onionr/onionr.py +++ b/onionr/onionr.py @@ -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): '''