Skip to content

Commit

Permalink
Merge eb54c80 into 49e9fcb
Browse files Browse the repository at this point in the history
  • Loading branch information
italolelis committed Oct 18, 2018
2 parents 49e9fcb + eb54c80 commit 69904f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package cmd
import (
"context"
"fmt"
"os"
"time"

"github.com/apcera/termtables"
Expand Down Expand Up @@ -65,7 +66,7 @@ func NewCheckCmd(ctx context.Context, timeout time.Duration) *cobra.Command {
table.AddRow(r...)
}

fmt.Printf(table.Render())
fmt.Fprint(os.Stderr, table.Render())
}
},
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package log

import (
"context"
"os"

"github.com/apex/log"
"github.com/apex/log/handlers/cli"
Expand All @@ -14,7 +15,7 @@ const loggerKey loggerKeyType = iota
var logger *log.Logger

func init() {
log.SetHandler(cli.Default)
log.SetHandler(cli.New(os.Stdout))
if l, ok := log.Log.(*log.Logger); ok {
logger = l
}
Expand Down

0 comments on commit 69904f4

Please sign in to comment.