From 0187be148cab38cd07e35054cd789dfca532d072 Mon Sep 17 00:00:00 2001 From: Andrii Date: Wed, 6 Nov 2024 12:08:18 +0200 Subject: [PATCH 1/3] Changed log level not to spam messages --- cmd/observer/node_builder/observer_builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/observer/node_builder/observer_builder.go b/cmd/observer/node_builder/observer_builder.go index 98fc1fc701a..b76a9e57f6f 100644 --- a/cmd/observer/node_builder/observer_builder.go +++ b/cmd/observer/node_builder/observer_builder.go @@ -929,7 +929,7 @@ func (builder *ObserverServiceBuilder) InitIDProviders() { if flowID, err := builder.IDTranslator.GetFlowID(pid); err != nil { // TODO: this is an instance of "log error and continue with best effort" anti-pattern - builder.Logger.Err(err).Str("peer", p2plogging.PeerId(pid)).Msg("failed to translate to Flow ID") + builder.Logger.Debug().Str("peer", p2plogging.PeerId(pid)).Msg("failed to translate to Flow ID") } else { result = append(result, flowID) } From 0d7f4e4ab1ad575d11fbe40f15af4216d0cccf9a Mon Sep 17 00:00:00 2001 From: Andrii Date: Wed, 6 Nov 2024 12:10:35 +0200 Subject: [PATCH 2/3] Changed one more log level --- cmd/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/utils.go b/cmd/utils.go index a3464bceb7b..536483cabc2 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -157,7 +157,7 @@ func CreatePublicIDTranslatorAndIdentifierProvider( if flowID, err := idTranslator.GetFlowID(pid); err != nil { // TODO: this is an instance of "log error and continue with best effort" anti-pattern - logger.Err(err).Str("peer", p2plogging.PeerId(pid)).Msg("failed to translate to Flow ID") + logger.Debug().Str("peer", p2plogging.PeerId(pid)).Msg("failed to translate to Flow ID") } else { result = append(result, flowID) } From ed149a7562231ae234822df6c0a22fe288ece41d Mon Sep 17 00:00:00 2001 From: Andrii Date: Thu, 7 Nov 2024 11:51:40 +0200 Subject: [PATCH 3/3] Changed follower builder logs as well --- follower/follower_builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/follower/follower_builder.go b/follower/follower_builder.go index 6d7b909125c..6f854216603 100644 --- a/follower/follower_builder.go +++ b/follower/follower_builder.go @@ -461,7 +461,7 @@ func (builder *FollowerServiceBuilder) InitIDProviders() { if flowID, err := builder.IDTranslator.GetFlowID(pid); err != nil { // TODO: this is an instance of "log error and continue with best effort" anti-pattern - builder.Logger.Err(err).Str("peer", p2plogging.PeerId(pid)).Msg("failed to translate to Flow ID") + builder.Logger.Debug().Str("peer", p2plogging.PeerId(pid)).Msg("failed to translate to Flow ID") } else { result = append(result, flowID) }