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
Make --output-format=json take effect when --output is not specified
Summary:
When `--output-format=json` is specified, the JSON formatting currently only takes effect when we write type errors to files. If type errors get written into console, the flag would get ignored. See [Github Issue](#157) .
This diff attempts to make `--output-format` consistently apply both in file writing and in console writing.
NOTE: For JSON format, I'm directly the console output to `stdout` so we could avoid clobbering with the `tracing` logger outputs and so downstream CLI tooling could have an easier way of extracting the data. For text format, I'm leaving the default console output to `stderr` still since I sense that one would be a more contentious decision and expect it to be addressed separately.
Reviewed By: ndmitchell
Differential Revision: D74208375
fbshipit-source-id: e3f5aae791f2854a64eee530a294b593df7c2839
0 commit comments