Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log details when to_display_text invocation fails #11025

Merged
merged 3 commits into from
Sep 11, 2024
Merged

Conversation

JaroslavTulach
Copy link
Member

@JaroslavTulach JaroslavTulach commented Sep 10, 2024

Pull Request Description

Closes #10770 by dumping out more information when to_display_text invocations fails.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • All code follows the
    Java,
  • Unit tests have been updated.

@JaroslavTulach JaroslavTulach added the CI: No changelog needed Do not require a changelog entry for this PR. label Sep 10, 2024
@JaroslavTulach JaroslavTulach self-assigned this Sep 10, 2024
@@ -153,6 +158,7 @@ static Object handleExceptionMessage(
try {
return Text.create(strings.asString(text));
} catch (UnsupportedMessageException e) {
ctx.getLogger().log(Level.WARNING, "Cannot convert " + text + " to string", e);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hubertp, is this the right way to dump additional info into CI log including:

  • a message
  • value of text
  • exception e with its stacktrace

If not, can you please update the line to dump such an info so it appears in the CI log when the error happens?

@JaroslavTulach
Copy link
Member Author

Should help addressing #10750

@JaroslavTulach JaroslavTulach changed the title Logging details when to_display_text invocations fails Log details when to_display_text invocation fails Sep 10, 2024
@JaroslavTulach JaroslavTulach added the CI: Ready to merge This PR is eligible for automatic merge label Sep 10, 2024
@mergify mergify bot merged commit 8b5c633 into develop Sep 11, 2024
40 checks passed
@mergify mergify bot deleted the wip/jtulach/Log10770 branch September 11, 2024 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve to_display_text for errors
3 participants