Skip to content

Commit

Permalink
telemetry: print debug output to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroProfundis committed Jun 7, 2021
1 parent c13763c commit 8be570b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func Execute() {
if err != nil {
log.Infof("report failed: %v", err)
}
fmt.Printf("report: %s\n", teleReport.String())
fmt.Fprintf(os.Stderr, "report: %s\n", teleReport.String())
if data, err := json.Marshal(teleReport); err == nil {
log.Debugf("report: %s\n", string(data))
}
Expand Down
2 changes: 1 addition & 1 deletion components/cluster/command/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func Execute() {
if err != nil {
log.Infof("report failed: %v", err)
}
fmt.Printf("report: %s\n", teleReport.String())
fmt.Fprintf(os.Stderr, "report: %s\n", teleReport.String())
if data, err := json.Marshal(teleReport); err == nil {
log.Debugf("report: %s\n", string(data))
}
Expand Down

0 comments on commit 8be570b

Please sign in to comment.