-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Improve legibility of admin pages by indenting JSON. #2492
Conversation
@@ -64,6 +64,7 @@ std::string MessageUtil::getJsonStringFromMessage(const Protobuf::Message& messa | |||
// Setting this option makes debugging easier because it keeps field names consistent in JSON | |||
// printouts. | |||
json_options.preserve_proto_field_names = true; | |||
json_options.add_whitespace = true; |
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.
This is used in various wire serializations. I think we probably don't want extra whitespace there universally. How about making this a bool arg that defaults false, and you can opt in stuff like admin pages?
I don't see the DCO signed-off-by, but maybe I'm missing something. It'll need to be in your commit message. |
Sounds good, will send an updated version.
…On Wed, Jan 31, 2018, 11:01 AM htuch ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In source/common/protobuf/utility.cc
<#2492 (comment)>:
> @@ -64,6 +64,7 @@ std::string MessageUtil::getJsonStringFromMessage(const Protobuf::Message& messa
// Setting this option makes debugging easier because it keeps field names consistent in JSON
// printouts.
json_options.preserve_proto_field_names = true;
+ json_options.add_whitespace = true;
This is used in various wire serializations. I think we probably don't
want extra whitespace there universally. How about making this a bool arg
that defaults false, and you can opt in stuff like admin pages?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2492 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAM_MpcCMJ4DI4jfwsaa38CJA49JSXUnks5tQLiIgaJpZM4R0eVq>
.
|
FYI this is being done already in #2449. cc @ramaraochavali |
This is covered in #2449, thanks for bringing it to my attention; closing this PR. |
* fix sd filter bugs * fix test * remove mesh uid change
) The `ubuntu-18.04` image has been deprecated: actions/runner-images#6002 May explain why our Linux CI jobs started being cancelled before even starting. https://envoyproxy.slack.com/archives/C02F93EEJCE/p1661181247759129 Signed-off-by: JP Simard <[email protected]>
) The `ubuntu-18.04` image has been deprecated: actions/runner-images#6002 May explain why our Linux CI jobs started being cancelled before even starting. https://envoyproxy.slack.com/archives/C02F93EEJCE/p1661181247759129 Signed-off-by: JP Simard <[email protected]>
Improve legibility of admin pages by indenting JSON.