fix: error log message.
This commit is contained in:
parent
53779d6ceb
commit
36d48224b5
3 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue