Add logScope to connmanager and pubsubprotobuf (#363)

This commit is contained in:
Oskar Thorén 2020-09-15 14:03:53 +08:00 committed by GitHub
parent 0db45462cd
commit 5e66f6fbd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,9 @@ import peerinfo,
stream/connection,
muxers/muxer
logScope:
topics = "connmanager"
declareGauge(libp2p_peers, "total connected peers")
const MaxConnectionsPerPeer = 5

View File

@ -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)