Skip to content

Conversation

@fedejeanne
Copy link
Contributor

Similar to #4388 (but this time for the indexing of JARs/JRTs), do not rely on the VERBOSE flag, let the exceptions come to the error log and to the UI instead for better debugging.

Notice that I logged some exceptions as warnings since the operation will be retried i.e. it's recoverable.

Contributes to #1303

@fedejeanne fedejeanne force-pushed the log_exceptions_when_indexing_2 branch from cf2fa08 to 3667708 Compare September 26, 2025 10:46
if (VERBOSE) {
trace("-> failed to recreate index for path: "+containerPathString, e); //$NON-NLS-1$
}
Util.log(Status.warning("Failed to recreate index for path: " + containerPathString)); //$NON-NLS-1$
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: if you check the call hierarchy of the method, you'll notice that this ends up returning false in these jobs:

image

Which means it is a recoverable error, ergo I just posted a warning.

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.

1 participant