diff --git a/pkg/provider/docker/config.go b/pkg/provider/docker/config.go index ccb293820..ac179b096 100644 --- a/pkg/provider/docker/config.go +++ b/pkg/provider/docker/config.go @@ -126,7 +126,7 @@ func (p *Provider) keepContainer(ctx context.Context, container dockerData) bool matches, err := constraints.Match(container.Labels, p.Constraints) if err != nil { - logger.Error("Error matching constraints expression: %v", err) + logger.Errorf("Error matching constraints expression: %v", err) return false } if !matches { diff --git a/pkg/provider/marathon/config.go b/pkg/provider/marathon/config.go index 84f98b256..1624390af 100644 --- a/pkg/provider/marathon/config.go +++ b/pkg/provider/marathon/config.go @@ -186,7 +186,7 @@ func (p *Provider) keepApplication(ctx context.Context, extraConf configuration, // Filter by constraints. matches, err := constraints.Match(labels, p.Constraints) if err != nil { - logger.Error("Error matching constraints expression: %v", err) + logger.Errorf("Error matching constraints expression: %v", err) return false } if !matches { diff --git a/pkg/provider/rancher/config.go b/pkg/provider/rancher/config.go index 3eeae9a37..3eb15ee69 100644 --- a/pkg/provider/rancher/config.go +++ b/pkg/provider/rancher/config.go @@ -123,7 +123,7 @@ func (p *Provider) keepService(ctx context.Context, service rancherData) bool { matches, err := constraints.Match(service.Labels, p.Constraints) if err != nil { - logger.Error("Error matching constraints expression: %v", err) + logger.Errorf("Error matching constraints expression: %v", err) return false } if !matches {