Skip to content

Commit

Permalink
Move log name setting to the init function
Browse files Browse the repository at this point in the history
  • Loading branch information
jm96441n committed Jan 20, 2023
1 parent ee55c01 commit 7425f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cmd/proxy/loglevel/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ type LogLevelCommand struct {
}

func (l *LogLevelCommand) init() {
l.Log.ResetNamed("loglevel")
l.set = flag.NewSets()
f := l.set.NewSet("Command Options")
f.StringVar(&flag.StringVar{
Expand Down Expand Up @@ -91,7 +92,6 @@ func (l *LogLevelCommand) init() {

func (l *LogLevelCommand) Run(args []string) int {
l.once.Do(l.init)
l.Log.ResetNamed("loglevel")
defer common.CloseWithError(l.BaseCommand)

err := l.parseFlags(args)
Expand Down

0 comments on commit 7425f12

Please sign in to comment.