forked from Ivasoft/traefik
fix: error log message.
This commit is contained in:
committed by
Traefiker Bot
parent
53779d6ceb
commit
36d48224b5
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user