Skip to content

Commit

Permalink
Fix spinner output to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
kawaz committed Nov 22, 2019
1 parent 2420727 commit 15de292
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cloudwatch/cloudwatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func (cwl *Client) Tail(ctx context.Context) error {
}

s := spinner.New(spinner.CharSets[14], 100*time.Millisecond)
s.Writer = os.Stderr
s.Start()
s.Suffix = " Fetching log streams..."

Expand Down
2 changes: 2 additions & 0 deletions cloudwatch/group.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cloudwatch

import (
"os"
"time"

"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
Expand All @@ -11,6 +12,7 @@ import (
// ListGroups lists group names matching the specified filter
func (cwl *Client) ListGroups() (groupNames []string, err error) {
s := spinner.New(spinner.CharSets[14], 100*time.Millisecond)
s.Writer = os.Stderr
s.Start()
s.Suffix = " Fetching log groups..."
defer s.Stop()
Expand Down

0 comments on commit 15de292

Please sign in to comment.