Skip to content

Commit

Permalink
address pr feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Tommy Carpenter <[email protected]>
  • Loading branch information
tommyjcarpenter committed Apr 2, 2024
1 parent bfb9b30 commit f85bf36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions loggingx/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
type Config struct {
Debug bool `mapstructure:"debug"`
Pretty bool `mapstructure:"pretty"`
DisableStacktrace bool `mapstructure:"disablestacktrace"`
DisableStacktrace bool `mapstructure:"disable_stacktrace"`
}

// MustViperFlags returns the cobra flags and viper config to prevent code duplication
Expand All @@ -35,6 +35,6 @@ func MustViperFlags(v *viper.Viper, flags *pflag.FlagSet) {
viperx.MustBindFlag(v, "logging.debug", flags.Lookup("debug"))
flags.Bool("pretty", false, "enable pretty (human readable) logging output")
viperx.MustBindFlag(v, "logging.pretty", flags.Lookup("pretty"))
flags.Bool("disablestacktrace", false, "logging errorf/fatalf will not include stacktraces")
viperx.MustBindFlag(v, "logging.disablestacktrace", flags.Lookup("disablestacktrace"))
flags.Bool("disable-stacktrace", false, "logging errorf/fatalf will not include stacktraces")
viperx.MustBindFlag(v, "logging.disable_stacktrace", flags.Lookup("disable-stacktrace"))
}

0 comments on commit f85bf36

Please sign in to comment.