Skip to content

Commit

Permalink
Make a now-internal method private
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Dec 9, 2024
1 parent 3c6c7a0 commit ce298e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func parseLevel(v string) zerolog.Level {

func InitLoggerOrDie(v interface{}, logLevel string) *zerolog.Logger {
conf := ParseLogConfOrDie(v, logLevel)
log, err := FromConfig(conf)
log, err := fromConfig(conf)
if err != nil {
fmt.Fprintf(os.Stderr, "error creating logger, exiting ...")
os.Exit(1)
Expand Down Expand Up @@ -125,7 +125,7 @@ type LogConf struct {
Level string `mapstructure:"level"`
}

func FromConfig(conf *LogConf) (*zerolog.Logger, error) {
func fromConfig(conf *LogConf) (*zerolog.Logger, error) {
if conf.Level == "" {
conf.Level = zerolog.DebugLevel.String()
}
Expand Down

0 comments on commit ce298e0

Please sign in to comment.