From 0f79ef51d2e9cb4a45a336aec228997f27d817cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20R=C3=B3=C5=BCa=C5=84ski?= Date: Fri, 12 Jul 2024 11:47:10 +0200 Subject: [PATCH] change default 'mesh' lvl to WARN and bring back tortoise INFO logs --- config/mainnet.go | 5 +++-- tortoise/algorithm.go | 2 +- tortoise/full.go | 2 +- tortoise/verifying.go | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config/mainnet.go b/config/mainnet.go index 40b123edba..6e6517598d 100644 --- a/config/mainnet.go +++ b/config/mainnet.go @@ -59,8 +59,9 @@ func MainnetConfig() Config { } logging := DefaultLoggingConfig() logging.TrtlLoggerLevel = zapcore.WarnLevel.String() - logging.AtxHandlerLevel = zapcore.WarnLevel.String() - logging.ProposalListenerLevel = zapcore.WarnLevel.String() + logging.MeshLoggerLevel = zapcore.WarnLevel.String() + logging.AtxHandlerLevel = zapcore.InfoLevel.String() + logging.ProposalListenerLevel = zapcore.InfoLevel.String() hare3conf := hare3.DefaultConfig() hare3conf.Committee = 400 hare3conf.Enable = true diff --git a/tortoise/algorithm.go b/tortoise/algorithm.go index 8c0dde7444..215051c438 100644 --- a/tortoise/algorithm.go +++ b/tortoise/algorithm.go @@ -147,7 +147,7 @@ func New(atxdata *atxsdata.Data, opts ...Opt) (*Tortoise, error) { }) } if t.cfg.CollectDetails > 0 { - t.logger.Debug("tortoise will collect details", + t.logger.Info("tortoise will collect details", zap.Uint32("tortoise-collect-details", t.cfg.CollectDetails), ) enableCollector(t) diff --git a/tortoise/full.go b/tortoise/full.go index 085a78eef0..06813fbad2 100644 --- a/tortoise/full.go +++ b/tortoise/full.go @@ -150,7 +150,7 @@ func (f *full) verify(logger *zap.Logger, lid types.LayerID) (bool, bool) { }, ) if changes { - logger.Debug("candidate layer is verified", + logger.Info("candidate layer is verified", zapBlocks(layer.blocks), zap.String("verifier", "full"), zap.Uint32("counted layer", f.counted.Uint32()), diff --git a/tortoise/verifying.go b/tortoise/verifying.go index e8d7842d85..a48d074a8c 100644 --- a/tortoise/verifying.go +++ b/tortoise/verifying.go @@ -120,7 +120,7 @@ func (v *verifying) verify(logger *zap.Logger, lid types.LayerID) (bool, bool) { }, ) if changes { - logger.Debug("candidate layer is verified", + logger.Info("candidate layer is verified", zapBlocks(layer.blocks), zap.String("verifier", "verifying"), zap.Uint32("candidate layer", lid.Uint32()),