Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion logstash-core/src/main/java/org/logstash/Logstash.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ public static void main(final String... args) {

private static void installGlobalUncaughtExceptionHandler() {
Thread.setDefaultUncaughtExceptionHandler((thread, e) -> {
if (e instanceof Error) {
if (e instanceof org.jruby.exceptions.SystemExit) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just nit: we can import org.jruby.exceptions.SystemExit on the top to keep the standard importing import org.jruby.exceptions.*

halt(1);
} else if (e instanceof Error) {
handleFatalError("uncaught error (in thread " + thread.getName() + ")", e);
} else {
LOGGER.error("uncaught exception (in thread " + thread.getName() + ")", e);
Expand Down
Loading