Skip to content

Commit

Permalink
Reduce api-gateway logging
Browse files Browse the repository at this point in the history
  • Loading branch information
curtbushko committed Aug 31, 2023
1 parent ef30dc0 commit 76913ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion control-plane/api-gateway/cache/consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ func (c *Cache) subscribeToConsul(ctx context.Context, kind string) {
if err != nil {
// if we timeout we don't care about the error message because it's expected to happen on long polls
// any other error we want to alert on
if !strings.Contains(strings.ToLower(err.Error()), "timeout") {
if !strings.Contains(strings.ToLower(err.Error()), "timeout") &&
!strings.Contains(strings.ToLower(err.Error()), "no such host") &&
!strings.Contains(strings.ToLower(err.Error()), "connection refused") {
c.logger.Error(err, fmt.Sprintf("error fetching config entries for kind: %s", kind))
}
continue
Expand Down

0 comments on commit 76913ec

Please sign in to comment.