clean up some log spam

This commit is contained in:
whyrusleeping
2019-12-16 09:14:21 -08:00
parent dad3b1cb26
commit 99eae286c2
5 changed files with 13 additions and 8 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ func (bss *BlockSyncService) HandleStream(s inet.Stream) {
var req BlockSyncRequest
if err := cborutil.ReadCborRPC(bufio.NewReader(s), &req); err != nil {
log.Errorf("failed to read block sync request: %s", err)
log.Warnf("failed to read block sync request: %s", err)
return
}
log.Infof("block sync request for: %s %d", req.Start, req.RequestLength)
@@ -102,7 +102,7 @@ func (bss *BlockSyncService) HandleStream(s inet.Stream) {
}
if err := cborutil.WriteCborRPC(s, resp); err != nil {
log.Error("failed to write back response for handle stream: ", err)
log.Warn("failed to write back response for handle stream: ", err)
return
}
}