Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - reduce info log spam in mesh, ballots, atxs modules #5153

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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