Skip to content

Commit

Permalink
Set the log level for running on <network> as INFO. (#13670)
Browse files Browse the repository at this point in the history
In case of custom ethereum network, keep the log as `WARN`.
  • Loading branch information
nalepae authored Feb 27, 2024
1 parent 0453d18 commit 5215ed0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/features/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,21 +119,21 @@ func InitWithReset(c *Flags) func() {
// configureTestnet sets the config according to specified testnet flag
func configureTestnet(ctx *cli.Context) error {
if ctx.Bool(PraterTestnet.Name) {
log.Warn("Running on the Prater Testnet")
log.Info("Running on the Prater Testnet")
if err := params.SetActive(params.PraterConfig().Copy()); err != nil {
return err
}
applyPraterFeatureFlags(ctx)
params.UsePraterNetworkConfig()
} else if ctx.Bool(SepoliaTestnet.Name) {
log.Warn("Running on the Sepolia Beacon Chain Testnet")
log.Info("Running on the Sepolia Beacon Chain Testnet")
if err := params.SetActive(params.SepoliaConfig().Copy()); err != nil {
return err
}
applySepoliaFeatureFlags(ctx)
params.UseSepoliaNetworkConfig()
} else if ctx.Bool(HoleskyTestnet.Name) {
log.Warn("Running on the Holesky Beacon Chain Testnet")
log.Info("Running on the Holesky Beacon Chain Testnet")
if err := params.SetActive(params.HoleskyConfig().Copy()); err != nil {
return err
}
Expand All @@ -143,7 +143,7 @@ func configureTestnet(ctx *cli.Context) error {
if ctx.IsSet(cmd.ChainConfigFileFlag.Name) {
log.Warn("Running on custom Ethereum network specified in a chain configuration yaml file")
} else {
log.Warn("Running on Ethereum Mainnet")
log.Info("Running on Ethereum Mainnet")
}
if err := params.SetActive(params.MainnetConfig().Copy()); err != nil {
return err
Expand Down

0 comments on commit 5215ed0

Please sign in to comment.