fix: error log message.

This commit is contained in:
Ludovic Fernandez 2019-06-26 09:10:03 +02:00 committed by Traefiker Bot
parent 53779d6ceb
commit 36d48224b5
3 changed files with 3 additions and 3 deletions

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {