now only show block contents debug if txt
This commit is contained in:
parent
8853926287
commit
7578ac874b
@ -251,11 +251,11 @@ class OnionrCommunicate:
|
|||||||
digest = digest.decode()
|
digest = digest.decode()
|
||||||
if digest == hash.strip():
|
if digest == hash.strip():
|
||||||
self._core.setData(data)
|
self._core.setData(data)
|
||||||
if data.startswith('-txt-'):
|
|
||||||
self._core.setBlockType(hash, 'txt')
|
|
||||||
logger.info('Successfully obtained data for ' + hash, timestamp=True)
|
logger.info('Successfully obtained data for ' + hash, timestamp=True)
|
||||||
if len(data) < 120:
|
if data.startswith(b'-txt-'):
|
||||||
logger.debug('Block text:\n' + data)
|
self._core.setBlockType(hash, 'txt')
|
||||||
|
if len(data) < 120:
|
||||||
|
logger.debug('Block text:\n' + data)
|
||||||
else:
|
else:
|
||||||
logger.warn("Failed to validate " + hash + " " + " hash calculated was " + digest)
|
logger.warn("Failed to validate " + hash + " " + " hash calculated was " + digest)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user