Skip to content

Commit

Permalink
fix slog formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cortze committed Apr 9, 2024
1 parent a1bf61b commit d03cfd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eth/node_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func (n *NodeConfig) getDesiredFullTopics(encoder encoder.NetworkEncoding) []str
for idx, topicBase := range desiredTopics {
topicFormat, err := topicFormatFromBase(topicBase)
if err != nil {
slog.Warn("invalid gossipsub topic", topicBase)
slog.Warn("invalid gossipsub topic", slog.Attr{Key: "topic", Value: slog.StringValue(topicBase)})
continue
}
fullTopics[idx] = n.composeEthTopic(topicFormat, encoder)
Expand Down
2 changes: 1 addition & 1 deletion eth/topic_score_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func topicToScoreParamsMapper(topic string) *pubsub.TopicScoreParams {
return defaultBlockTopicParams()
// TODO: extend this to more topics
default:
slog.Warn("unrecognized gossip-topic to apply peerscores", topic)
slog.Warn("unrecognized gossip-topic to apply peerscores", slog.Attr{Key: "topic", Value: slog.StringValue(topic)})
return defaultBlockTopicParams()
}
}
Expand Down

0 comments on commit d03cfd6

Please sign in to comment.