Skip to content

Commit

Permalink
cleanup error log (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcox250 committed Aug 12, 2024
1 parent 3706f3d commit b9f86c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion proxy-service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,11 @@ func (s Service) makeSegmentMap(ctx context.Context, envID string) map[string]*d
s.logger.Info(ctx, "makeSegmentMap can't get segments from the cache, context was cancelled by the client", "err", err)
return segmentMap
}

// Not much else we can really do here other than log the error
s.logger.Error(ctx, "makeSegmentMap failed to get segments from cache: ", "err", err)
if !errors.Is(err, domain.ErrCacheNotFound) {
s.logger.Error(ctx, "makeSegmentMap failed to get segments from cache: ", "err", err)
}
return segmentMap
}

Expand Down

0 comments on commit b9f86c7

Please sign in to comment.