fix log messages
This commit is contained in:
parent
7dcc528cd1
commit
535916e54b
@ -5,11 +5,13 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/filecoin-project/lotus/chain/stmgr"
|
"github.com/filecoin-project/lotus/chain/stmgr"
|
||||||
|
logging "github.com/ipfs/go-log"
|
||||||
host "github.com/libp2p/go-libp2p-core/host"
|
host "github.com/libp2p/go-libp2p-core/host"
|
||||||
"github.com/prometheus/common/log"
|
|
||||||
"go.opencensus.io/trace"
|
"go.opencensus.io/trace"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var log = logging.Logger("peertag")
|
||||||
|
|
||||||
// PeerTagger uses information from the chain to tag peer connections to
|
// PeerTagger uses information from the chain to tag peer connections to
|
||||||
// prevent them from being closed by the connection manager
|
// prevent them from being closed by the connection manager
|
||||||
type PeerTagger struct {
|
type PeerTagger struct {
|
||||||
@ -20,7 +22,6 @@ type PeerTagger struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewPeerTagger(h host.Host, st *stmgr.StateManager) *PeerTagger {
|
func NewPeerTagger(h host.Host, st *stmgr.StateManager) *PeerTagger {
|
||||||
log.Error("NEW PEER TAGGER")
|
|
||||||
return &PeerTagger{
|
return &PeerTagger{
|
||||||
h: h,
|
h: h,
|
||||||
st: st,
|
st: st,
|
||||||
|
Loading…
Reference in New Issue
Block a user