Skip to content

Commit

Permalink
fix: etcd provider name.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored and traefiker committed Jan 22, 2020
1 parent c24e74e commit dce6356
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/provider/kv/kv.go
Expand Up @@ -43,7 +43,7 @@ func (p *Provider) SetDefaults() {

// Init the provider
func (p *Provider) Init(storeType store.Backend, name string) error {
ctx := log.With(context.Background(), log.Str(log.ProviderName, string(storeType)))
ctx := log.With(context.Background(), log.Str(log.ProviderName, name))

p.storeType = storeType
p.name = name
Expand All @@ -60,7 +60,7 @@ func (p *Provider) Init(storeType store.Backend, name string) error {

// Provide allows the docker provider to provide configurations to traefik using the given configuration channel.
func (p *Provider) Provide(configurationChan chan<- dynamic.Message, pool *safe.Pool) error {
ctx := log.With(context.Background(), log.Str(log.ProviderName, string(p.storeType)))
ctx := log.With(context.Background(), log.Str(log.ProviderName, p.name))

logger := log.FromContext(ctx)

Expand Down Expand Up @@ -122,7 +122,7 @@ func (p *Provider) watchKv(ctx context.Context, configurationChan chan<- dynamic

if configuration != nil {
configurationChan <- dynamic.Message{
ProviderName: string(p.storeType),
ProviderName: p.name,
Configuration: configuration,
}
}
Expand Down

0 comments on commit dce6356

Please sign in to comment.