Converted _sync log.debug to log.info

This commit is contained in:
tripathyr 2021-05-24 16:29:15 +05:30 committed by GitHub
parent 17dd83de10
commit 869a7c21b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1113,10 +1113,10 @@ BlockService.prototype._sync = function() {
self._processingBlock = true;
log.debug('Block Service: querying header service for next block using tip: ' + self._tip.hash);
log.info('Block Service: querying header service for next block using tip: ' + self._tip.hash);
self._header.getEndHash(self._tip, self._readAheadBlockCount, function(err, targetHash, endHash) {
log.info('Value of targetHash is: ' + targetHash + ' and value of endHash is: ' + endHash + ' and value of self._readAheadBlockCount is: ' + self._readAheadBlockCount); );
if(err) {
self._processingBlock = false;
return self._handleError(err);
@ -1135,7 +1135,7 @@ BlockService.prototype._sync = function() {
// then we must assume we've reorg'ed very shortly after
// we made this call and we should re-compute where we are
self._getBlocksTimer = setTimeout(function() {
log.debug('Block Service: block timeout, emitting for next block');
log.info('Block Service: block timeout, emitting for next block');
self._processingBlock = false;
if (!self._reorging) {
self.emit('next block');