Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spinner output to stderr #12

Merged
merged 1 commit into from
Nov 22, 2019
Merged

Conversation

kawaz
Copy link
Contributor

@kawaz kawaz commented Nov 22, 2019

Before

There was a problem when handling raw logs with pipes. Because the output of spinner was stdout.

$ utern --no-log-group --no-log-stream RDS | jq .
+ RDSOSMetrics
+ RDSOSMetrics › db-T7X6VABCCNHPRQEROUSDIRSTUU (2019-11-22T15:02:47+09:00)
parse error: Invalid numeric literal at line 1, column 4

After

So I changed the output of spinner to stderr.

$ ./utern --no-log-group --no-log-stream RDS | jq .
+ RDSOSMetrics
+ RDSOSMetrics › db-T7X6VABCCNHPRQEROUSDIRSTUU (2019-11-22T15:03:47+09:00)
{
  "engine": "MYSQL",
  "instanceID": "sugoi-db",
  "instanceResourceID": "db-T7X6VABCCNHPRQEROUSDIRSTUU",
  "timestamp": "2019-11-22T05:59:47Z",
  "version": 1,
  "uptime": "83 days, 07:20:09",
  "numVCPUs": 2,
  "cpuUtilization": {
    "guest": 0,
    "irq": 0,

@Songmu Songmu merged commit 9ad2d00 into knqyf263:master Nov 22, 2019
@Songmu
Copy link
Collaborator

Songmu commented Nov 22, 2019

I've confirmed it to work with the following command.

% utern awslogs-api 2> /dev/null

Thanks!

Songmu added a commit that referenced this pull request Nov 22, 2019
## [v0.0.4](v0.0.3...v0.0.4) (2019-11-22)

* Fix spinner output to stderr [#12](#12) ([kawaz](https://github.com/kawaz))
@Songmu
Copy link
Collaborator

Songmu commented Nov 22, 2019

Released as v0.0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants