From e5a3a4650ebc2a4deeca12237537359d45d5e4c2 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sun, 28 Jan 2018 21:00:12 -0600 Subject: [PATCH] now display new block text if small in terminal --- onionr/communicator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/onionr/communicator.py b/onionr/communicator.py index d6dc9bdb..3be47f31 100755 --- a/onionr/communicator.py +++ b/onionr/communicator.py @@ -147,6 +147,8 @@ class OnionrCommunicate: if digest == hash.strip(): self._core.setData(data) logger.info('Successfully obtained data for ' + hash) + if len(data) < 120: + logger.debug('Block text:\n' + data) else: logger.warn("Failed to validate " + hash)