Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

Commit

Permalink
fixes a hang that occurs when no matching streams are found: (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuentes authored Aug 8, 2017
1 parent b2145d7 commit 8bc25b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cwreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func (c *CloudwatchLogsReader) pumpEvents(eventChan chan<- Event, follow bool) {
streams, err := c.getLogStreams()
if err != nil {
c.error = err
close(eventChan)
return
}
params.LogStreamNames = streamsToNames(streams)
Expand Down

0 comments on commit 8bc25b1

Please sign in to comment.