diff --git a/libp2p/connmanager.nim b/libp2p/connmanager.nim index 3e91fbae3..1118a4c62 100644 --- a/libp2p/connmanager.nim +++ b/libp2p/connmanager.nim @@ -13,6 +13,9 @@ import peerinfo, stream/connection, muxers/muxer +logScope: + topics = "connmanager" + declareGauge(libp2p_peers, "total connected peers") const MaxConnectionsPerPeer = 5 diff --git a/libp2p/protocols/pubsub/rpc/protobuf.nim b/libp2p/protocols/pubsub/rpc/protobuf.nim index ab6fcc711..8c94e10f2 100644 --- a/libp2p/protocols/pubsub/rpc/protobuf.nim +++ b/libp2p/protocols/pubsub/rpc/protobuf.nim @@ -14,6 +14,9 @@ import messages, ../../../utility, ../../../protobuf/minprotobuf +logScope: + topics = "pubsubprotobuf" + proc write*(pb: var ProtoBuffer, field: int, graft: ControlGraft) = var ipb = initProtoBuffer() ipb.write(1, graft.topicID)