now display new block text if small in terminal

master
Kevin Froman 2018-01-28 21:00:12 -06:00
parent 8c6a04f03d
commit e5a3a4650e
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,8 @@ class OnionrCommunicate:
if digest == hash.strip(): if digest == hash.strip():
self._core.setData(data) self._core.setData(data)
logger.info('Successfully obtained data for ' + hash) logger.info('Successfully obtained data for ' + hash)
if len(data) < 120:
logger.debug('Block text:\n' + data)
else: else:
logger.warn("Failed to validate " + hash) logger.warn("Failed to validate " + hash)