cmd/geth, internal/flags: print envvar config source and bad names (#28119)

This commit is contained in:
Péter Szilágyi
2023-09-15 15:52:53 +03:00
committed by GitHub
parent 4fa3db49a1
commit 16cd1a7561
2 changed files with 41 additions and 1 deletions
+5 -1
View File
@@ -249,7 +249,11 @@ func init() {
app.Before = func(ctx *cli.Context) error {
maxprocs.Set() // Automatically set GOMAXPROCS to match Linux container CPU quota.
flags.MigrateGlobalFlags(ctx)
return debug.Setup(ctx)
if err := debug.Setup(ctx); err != nil {
return err
}
flags.CheckEnvVars(ctx, app.Flags, "GETH")
return nil
}
app.After = func(ctx *cli.Context) error {
debug.Exit()