You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write diagnostic warnings to stderr instead of stdout (#1682)
### Change summary
Expiration warnings, profile-not-found warnings, and config permission
warnings were written to `stdout,` which broke JSON parsing when
`--json` was used. Now warnings go to stderr instead.
All Submissions:
* [x] Have you followed the guidelines in our Contributing document?
* [x] Have you checked to ensure there aren't other open [Pull
Requests](https://github.com/fastly/cli/pulls) for the same
update/change?
### Changes to Core Features:
* [x] Have you written new tests for your core changes, as applicable?
* [x] Have you successfully run tests with your changes locally?
### User Impact
Users piping CLI output through `jq` or other JSON parsers will no
longer encounter parse errors caused by diagnostic warnings mixed into
`stdout`.
### Are there any considerations that need to be addressed for release?
No breaking changes.
text.Important(data.Output, "The Fastly CLI is configured to collect data related to Wasm builds (e.g. compilation times, resource usage, and other non-identifying data). To learn more about what data is being collected, why, and how to disable it: https://www.fastly.com/documentation/reference/cli")
0 commit comments