Skip to content

Commit

Permalink
fix: ensure logger uses config (#1104)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshm91 authored May 25, 2023
1 parent 12d0aea commit d9b0965
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver/configuration/provider_koanf.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ func NewKoanfProvider(ctx context.Context, flags *pflag.FlagSet, l *logrusx.Logg
return nil, err
}

l.UseConfig(kp.source)

for k, v := range kp.source.All() {
l.Infof("Loaded config: %v = %v", k, v)
}
Expand Down

0 comments on commit d9b0965

Please sign in to comment.