Skip to content

Commit

Permalink
change default 'mesh' lvl to WARN and bring back tortoise INFO logs
Browse files Browse the repository at this point in the history
  • Loading branch information
poszu committed Jul 12, 2024
1 parent d1632db commit 0f79ef5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions config/mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tortoise/algorithm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tortoise/full.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down
2 changes: 1 addition & 1 deletion tortoise/verifying.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit 0f79ef5

Please sign in to comment.