Skip to content

Commit

Permalink
reduce info log spam in mesh, ballots, atxs modules (#5153)
Browse files Browse the repository at this point in the history
change log levels to warn for:
- mesh
- proposals listener
- atx listener

we should keep it as info on some nodes in cloud to see minimally useful info
  • Loading branch information
dshulyak committed Oct 13, 2023
1 parent 9d25ba1 commit 07ad461
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type LoggerConfig struct {
PostLoggerLevel string `mapstructure:"post"`
StateDbLoggerLevel string `mapstructure:"stateDb"`
StateLoggerLevel string `mapstructure:"state"`
AtxHandlerLevel string `mapstructure:"atxHandler"`
AtxDbStoreLoggerLevel string `mapstructure:"atxDbStore"`
BeaconLoggerLevel string `mapstructure:"beacon"`
WeakCoinLoggerLevel string `mapstructure:"weakCoin"`
Expand All @@ -45,6 +46,7 @@ type LoggerConfig struct {
HareBeaconLoggerLevel string `mapstructure:"hare-beacon"`
TimeSyncLoggerLevel string `mapstructure:"timesync"`
VMLogLevel string `mapstructure:"vm"`
ProposalListenerLevel string `mapstructure:"proposalListener"`
}

func DefaultLoggingConfig() LoggerConfig {
Expand All @@ -57,6 +59,7 @@ func DefaultLoggingConfig() LoggerConfig {
StateDbLoggerLevel: defaultLoggingLevel.String(),
StateLoggerLevel: defaultLoggingLevel.String(),
AtxDbStoreLoggerLevel: defaultLoggingLevel.String(),
AtxHandlerLevel: defaultLoggingLevel.String(),
BeaconLoggerLevel: defaultLoggingLevel.String(),
WeakCoinLoggerLevel: defaultLoggingLevel.String(),
PoetDbStoreLoggerLevel: defaultLoggingLevel.String(),
Expand All @@ -79,5 +82,6 @@ func DefaultLoggingConfig() LoggerConfig {
HareBeaconLoggerLevel: defaultLoggingLevel.String(),
TimeSyncLoggerLevel: defaultLoggingLevel.String(),
VMLogLevel: defaultLoggingLevel.String(),
ProposalListenerLevel: defaultLoggingLevel.String(),
}
}
3 changes: 3 additions & 0 deletions config/mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ func MainnetConfig() Config {
}
logging := DefaultLoggingConfig()
logging.TrtlLoggerLevel = zapcore.WarnLevel.String()
logging.MeshLoggerLevel = zapcore.WarnLevel.String()
logging.AtxHandlerLevel = zapcore.WarnLevel.String()
logging.ProposalListenerLevel = zapcore.WarnLevel.String()
return Config{
BaseConfig: BaseConfig{
DataDirParent: defaultDataDir,
Expand Down

0 comments on commit 07ad461

Please sign in to comment.