Skip to content

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

Merged
ejona86 merged 1 commit into
grpc:masterfrom
ejona86:xds-tostring-no-newline
Jun 8, 2026
Merged

xds: Remove newlines from XdsConfig.toString()#12838
ejona86 merged 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
@ejona86 ejona86 merged commit ec618b7 into grpc:master Jun 8, 2026
16 of 18 checks passed
@ejona86 ejona86 deleted the xds-tostring-no-newline branch June 8, 2026 13:54
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.

2 participants