Skip to content

Improve console water mark error messages#2763

Open
elsazac wants to merge 1 commit into
eclipse-platform:masterfrom
elsazac:improveLogMessages
Open

Improve console water mark error messages#2763
elsazac wants to merge 1 commit into
eclipse-platform:masterfrom
elsazac:improveLogMessages

Conversation

@elsazac

@elsazac elsazac commented Jun 11, 2026

Copy link
Copy Markdown
Member

This change improves logging when invalid console water mark values are encountered. Previously, users would see an IllegalArgumentException with the message, High water mark must be greater than low water mark without any indication of the actual values that caused the failure. This change updates to include the configured high and low water mark values in the exception message thrown by IOConsole.setWaterMarks. Also adds a warning with additional context in logs in ProcessConsole.propertyChange when an invalid console buffer configuration is detected.

contributes to: #1262

@elsazac elsazac force-pushed the improveLogMessages branch from 7b6dfb1 to a4580d7 Compare June 11, 2026 07:18
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   58m 17s ⏱️ +25s
 4 677 tests ±0   4 655 ✅ ±0   22 💤 ±0  0 ❌ ±0 
11 925 runs  ±0  11 772 ✅ ±0  153 💤 ±0  0 ❌ ±0 

Results for commit a4580d7. ± Comparison against base commit 8e32951.

@elsazac elsazac force-pushed the improveLogMessages branch from a4580d7 to a2d47f2 Compare June 11, 2026 12:30
improved exception messages to show actual water mark values and added
validation. Currently in propertyChange() the exception is ignored so
log invalid preference changes with specific values for easier
debugging.

Fixes: eclipse-platform#1262
@elsazac elsazac force-pushed the improveLogMessages branch from a2d47f2 to 6cd8742 Compare June 11, 2026 12:31
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