now display new block text if small in terminal
This commit is contained in:
parent
8c6a04f03d
commit
e5a3a4650e
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user