remove more spammy logs

This commit is contained in:
whyrusleeping 2019-12-07 23:32:34 +01:00
parent d8d7827579
commit d3f08c5243
3 changed files with 3 additions and 5 deletions

View File

@ -97,7 +97,7 @@ func (bss *BlockSyncService) HandleStream(s inet.Stream) {
resp, err := bss.processRequest(ctx, &req)
if err != nil {
log.Error("failed to process block sync request: ", err)
log.Warn("failed to process block sync request: ", err)
return
}

View File

@ -78,7 +78,7 @@ func HandleIncomingMessages(ctx context.Context, mpool *messagepool.MessagePool,
}
if err := mpool.Add(m); err != nil {
log.Warnf("failed to add message from network to message pool (From: %s, To: %s, Nonce: %d, Value: %s): %+v", m.Message.From, m.Message.To, m.Message.Nonce, types.FIL(m.Message.Value), err)
log.Warnf("failed to add message from network to message pool (From: %s, To: %s, Nonce: %d, Value: %s): %s", m.Message.From, m.Message.To, m.Message.Nonce, types.FIL(m.Message.Value), err)
continue
}
}

View File

@ -2,7 +2,6 @@ package hello
import (
"context"
"fmt"
"go.uber.org/fx"
@ -119,8 +118,7 @@ func (hs *Service) SayHello(ctx context.Context, pid peer.ID) error {
HeaviestTipSetWeight: weight,
GenesisHash: gen.Cid(),
}
fmt.Println("SENDING HELLO MESSAGE: ", hts.Cids(), hts.Height())
fmt.Println("hello message genesis: ", gen.Cid())
log.Info("Sending hello message: ", hts.Cids(), hts.Height(), gen.Cid())
if err := cborutil.WriteCborRPC(s, hmsg); err != nil {
return err