mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-13 16:35:45 +00:00
Merge pull request #13718 from mikemccand/catch_throwable
LoggingRunnable.run should catch and log all errors, not just Exception
This commit is contained in:
commit
4fb6386df3
@ -511,8 +511,8 @@ public class ThreadPool extends AbstractComponent {
|
|||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
runnable.run();
|
runnable.run();
|
||||||
} catch (Exception e) {
|
} catch (Throwable t) {
|
||||||
logger.warn("failed to run {}", e, runnable.toString());
|
logger.warn("failed to run {}", t, runnable.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user