-
Notifications
You must be signed in to change notification settings - Fork 53
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: Ensure CLI outputs JSON to stdout when directed to pipe #804
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #804 +/- ##
========================================
Coverage 59.67% 59.67%
========================================
Files 155 155
Lines 17283 17283
========================================
+ Hits 10313 10314 +1
+ Misses 6044 6043 -1
Partials 926 926
|
I'm not sure I understand what this changes. the logger doesn't output JSON for these lines by default. Starting defra from develop or this branch doesn't change anything. Maybe you could add a test to show that it does what you want it to? |
thanks, you're right. i'll do another implementation, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Looking forward to the tests in 0.4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
05e78d3
to
83d7128
Compare
Relevant issue(s)
Resolves #803
Description
Small fix: Only output JSON when doing so to a pipe, to be compatible with JSON parsers etc.
Tasks
How has this been tested?
make:test
Specify the platform(s) on which this was tested: