set "ignoring invalid topic subscription" to trace level

This commit is contained in:
Giovanni Petrantoni 2021-01-15 18:48:58 +09:00
parent 240ec84ffb
commit 6542b913df
1 changed files with 1 additions and 2 deletions

View File

@ -205,7 +205,6 @@ declareGauge(libp2p_gossipsub_under_dlow_topics, "number of topics below dlow")
declareGauge(libp2p_gossipsub_under_dout_topics, "number of topics below dout")
declareGauge(libp2p_gossipsub_under_dhigh_above_dlow_topics, "number of topics below dhigh but above dlow")
declareGauge(libp2p_gossipsub_no_peers_topics, "number of topics without peers available")
declareCounter(libp2p_gossipsub_above_dhigh_condition, "number of above dhigh pruning branches ran", labels = ["topic"])
proc init*(_: type[GossipSubParams]): GossipSubParams =
@ -1034,7 +1033,7 @@ method subscribeTopic*(g: GossipSub,
if subscribe and not(isNil(g.subscriptionValidator)) and not(g.subscriptionValidator(topic)):
# this is a violation, so warn should be in order
warn "ignoring invalid topic subscription", topic, peer
trace "ignoring invalid topic subscription", topic, peer
# also punish
peer.behaviourPenalty += 1
return