Skip to content

Improve console water mark error messages#2763

Merged
elsazac merged 1 commit into
eclipse-platform:masterfrom
elsazac:improveLogMessages
Jun 12, 2026
Merged

Improve console water mark error messages#2763
elsazac merged 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

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   57m 52s ⏱️ + 4m 8s
 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 2edb713. ± Comparison against base commit 89e3793.

♻️ This comment has been updated with latest results.

@elsazac elsazac force-pushed the improveLogMessages branch 4 times, most recently from 5246f69 to 811d019 Compare June 12, 2026 09:53
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 811d019 to 2edb713 Compare June 12, 2026 11:00
@elsazac elsazac merged commit f92c8da into eclipse-platform:master Jun 12, 2026
18 checks passed
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