Remove all platform detection logging to eliminate stderr output during Clava startup#211
Remove all platform detection logging to eliminate stderr output during Clava startup#211
Conversation
Co-authored-by: tiagolascasas <25725952+tiagolascasas@users.noreply.github.com>
|
These changes should be done starting from "staging" as I know there are modifications pending in the same files this PR touches. |
|
@copilot Nothing of this makes sense. Messages at level INFO should never be sent to stderr. It also doesn't fix the warning about the kernel version, which I want to get rid of entirely. And finally, the first line with the timestamp shouldn't be written to stderr as well. |
Co-authored-by: tiagolascasas <25725952+tiagolascasas@users.noreply.github.com>
You're absolutely right. I've now completely removed all logging statements from the platform detection code (commit cdd57a6). This eliminates:
The platform detection logic remains unchanged - it still validates versions but now runs silently. |
|
@tiagolascasas It will probably never find the code responsible because it is deep in the |
Problem
During Clava startup, platform detection messages were being output to stderr instead of stdout, causing issues when running Clava silently in scripts. This occurred because Java's
java.util.loggingframework outputs to stderr by default.For example, when running on Linux, users would see messages like:
These messages appeared at INFO level and were sent to stderr along with timestamp lines, making it difficult to run Clava cleanly in automated scripts.
Solution
Completely removed all logging statements from
SupportedPlatform.java:getMacOSVersion()helper methodSUPPORTED_MAC_VERSIONconstantImpact
Platform Detection Behavior
The platform detection logic still:
The only change is that these checks now happen silently without any logging output.
Fixes #210
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.