RUM-14581: Redirect TraceStructureWriter default output from stderr to stdout#3191
Merged
Conversation
…o stdout The default stream (used when no file is specified) was System.err, causing trace structure debug output to flood STANDARD_ERROR during test runs. This is informational data, not error output. The close() guard is updated accordingly to avoid closing System.out.
hamorillo
force-pushed
the
hector.morilloprieto/RUM-14581
branch
from
February 20, 2026 08:32
7fc0108 to
1a1ea16
Compare
This comment has been minimized.
This comment has been minimized.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3191 +/- ##
===========================================
+ Coverage 71.31% 71.32% +0.01%
===========================================
Files 929 929
Lines 34442 34442
Branches 5813 5813
===========================================
+ Hits 24562 24564 +2
+ Misses 8247 8245 -2
Partials 1633 1633
🚀 New features to boost your workflow:
|
hamorillo
marked this pull request as ready for review
February 20, 2026 09:50
0xnm
approved these changes
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Changes the default output stream in
TraceStructureWriterfromSystem.errtoSystem.out, and updates theclose()guard accordingly. This eliminates noisySTANDARD_ERRORoutput during test runs.You can see the difference between this report (before this PR) and the PR one.
Motivation
After #3163 enabled
TestLogEvent.STANDARD_ERRORin the JUnit configuration, pre-existingSystem.errusage inTraceStructureWriterbecame visible as noisy output during test runs. The trace structure output is informational/debug data, not error output, so it belongs on stdout.Additional Notes
TraceStructureWriteris only instantiated byListWriter(a test-only writer), so this has no production impact.Review checklist (to be filled by reviewers)