未验证 提交 27358385 编写于 作者: J Jesse Glick 提交者: GitHub

Messaging tweaks for `InstallUncaughtExceptionHandler` (#7622)

上级 5dcae0b4
......@@ -37,10 +37,10 @@ public class InstallUncaughtExceptionHandler {
}
catch (SecurityException ex) {
LOGGER.log(Level.SEVERE,
"Failed to set the default UncaughtExceptionHandler. " +
"If any threads die due to unhandled coding errors then there will be no logging of this information. " +
"The lack of this diagnostic information will make it harder to track down issues which will reduce the supportability of Jenkins. " +
"It is highly recommended that you consult the documentation that comes with you servlet container on how to allow the " +
"Failed to set the default UncaughtExceptionHandler. " +
"If any threads die due to unhandled coding errors then there will be no logging of this information. " +
"The lack of this diagnostic information will make it harder to track down issues which will reduce the supportability of Jenkins. " +
"It is highly recommended that you consult the documentation that comes with your servlet container on how to allow the " +
"`setDefaultUncaughtExceptionHandler` permission and enable it.", ex);
}
}
......@@ -100,7 +100,7 @@ public class InstallUncaughtExceptionHandler {
// if this was an OutOfMemoryError then all bets about logging are off - but in the absence of anything else...
LOGGER.log(Level.SEVERE,
"A thread (" + t.getName() + '/' + t.getId()
+ ") died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code.",
+ ") died unexpectedly due to an uncaught exception. This may leave your server corrupted and usually indicates a software bug.",
ex);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册