Skip to content

xds: Remove newlines from XdsConfig.toString()#12838

Open
ejona86 wants to merge 1 commit into
grpc:masterfrom
ejona86:xds-tostring-no-newline
Open

xds: Remove newlines from XdsConfig.toString()#12838
ejona86 wants to merge 1 commit into
grpc:masterfrom
ejona86:xds-tostring-no-newline

Conversation

@ejona86
Copy link
Copy Markdown
Member

@ejona86 ejona86 commented Jun 2, 2026

The newlines can make logs really hard to read, as many log handling systems will split up each log statement by line. With the newlines, those singular log entries get split between multiple log entries which can make reading/processing it pretty ugly.

When logging XdsConfig by itself, it isn't necessarily that bad when XdsConfig is what you're actually trying to look at, but when XdsConfig is in the attributes of ResolvedAddresses it gets very distracting.

The newlines can make logs really hard to read, as many log handling
systems will split up each log statement by line. With the newlines,
those singular log entries get split between multiple log entries which
can make reading/processing it pretty ugly.

When logging XdsConfig by itself, it isn't necessarily _that_ bad when
XdsConfig is what you're actually trying to look at, but when XdsConfig
is in the attributes of ResolvedAddresses it gets very distracting.
@ejona86 ejona86 requested a review from kannanjgithub June 2, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant