From 6ef5bc5faa22a78b2dfcac6fc3f9462ef94d1f76 Mon Sep 17 00:00:00 2001 From: Jacky Wang Date: Mon, 15 Mar 2021 23:25:02 -0700 Subject: [PATCH] [stream] elaborated log message to pickAvailableStream --- p2p/stream/common/requestmanager/requestmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/stream/common/requestmanager/requestmanager.go b/p2p/stream/common/requestmanager/requestmanager.go index 2cac5c51d..d1671cecf 100644 --- a/p2p/stream/common/requestmanager/requestmanager.go +++ b/p2p/stream/common/requestmanager/requestmanager.go @@ -289,7 +289,7 @@ func (rm *requestManager) getNextRequest() (*request, *stream) { st, err := rm.pickAvailableStream(req) if err != nil { - rm.logger.Debug().Msg("No available streams.") + rm.logger.Debug().Err(err).Str("request", req.String()).Msg("Pick available streams.") rm.addRequestToWaitings(req, reqPriorityHigh) return nil, nil }