accesslog: Append a newline to returned log_lines in access_log#5755
accesslog: Append a newline to returned log_lines in access_log#5755cmluciano wants to merge 5 commits intoenvoyproxy:masterfrom
Conversation
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
|
@ggreenway Is it still expected that I should have to update the json stubs to expect a newline for the first.pair? |
|
I haven't looked closely at how json logs are output. I thought they were using the protobuf-->json formatter; I'm unsure if they share code with the "normal" text access logger. So I don't know the answer to your question. |
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
ggreenway
left a comment
There was a problem hiding this comment.
Oh, now I understand your previous question. It looks like with this change as it is now, a newline is being inserted into each json value, which is not correct. A newline at the end of the json object comprising a single log-entry is what we want (and I think this already works for json logging).
The same call to parse() is being made from here:
parse(), or figure out another way to do that conditionally.
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
|
This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
not stale, just working on other PRs first |
|
This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
This pull request has been automatically closed because it has not had activity in the last 14 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Signed-off-by: Christopher M. Luciano cmluciano@us.ibm.com
Description: Append a newline to returned log_line in access_log
Risk Level: Medium - Might be worked around by external consumers already that add a newline themselves
Testing: Adjusted tests to account for newline
Docs Changes: TODO
Release Notes: TODO
Fixes #5193
Notes for reviewer: