mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-30 06:31:20 +00:00
peeking when debug is on
This commit is contained in:
parent
f53e6d1a33
commit
087a7b9a31
@ -7,6 +7,7 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/op/go-logging"
|
||||||
. "github.com/tendermint/tendermint/binary"
|
. "github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
@ -190,7 +191,7 @@ func (c *Connection) recvHandler() {
|
|||||||
|
|
||||||
FOR_LOOP:
|
FOR_LOOP:
|
||||||
for {
|
for {
|
||||||
if true {
|
if log.IsEnabledFor(logging.DEBUG) {
|
||||||
// peeking into bufReader
|
// peeking into bufReader
|
||||||
numBytes := c.bufReader.Buffered()
|
numBytes := c.bufReader.Buffered()
|
||||||
bytes, err := c.bufReader.Peek(MinInt(numBytes, 100))
|
bytes, err := c.bufReader.Peek(MinInt(numBytes, 100))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user