mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1231081 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0e95460e0a
commit
71e228fe92
|
@ -51,7 +51,8 @@ import org.slf4j.LoggerFactory;
|
||||||
if (ignoreNoSpaceErrors) {
|
if (ignoreNoSpaceErrors) {
|
||||||
Throwable cause = exception;
|
Throwable cause = exception;
|
||||||
while (cause != null && cause instanceof IOException) {
|
while (cause != null && cause instanceof IOException) {
|
||||||
if (cause.getMessage().contains(noSpaceMessage)) {
|
String message = cause.getMessage();
|
||||||
|
if (message != null && message.contains(noSpaceMessage)) {
|
||||||
LOG.info("Ignoring no space left exception, " + exception, exception);
|
LOG.info("Ignoring no space left exception, " + exception, exception);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -62,7 +63,8 @@ import org.slf4j.LoggerFactory;
|
||||||
if (ignoreSQLExceptions) {
|
if (ignoreSQLExceptions) {
|
||||||
Throwable cause = exception;
|
Throwable cause = exception;
|
||||||
while (cause != null) {
|
while (cause != null) {
|
||||||
if (cause instanceof SQLException && cause.getMessage().contains(sqlExceptionMessage)) {
|
String message = cause.getMessage();
|
||||||
|
if (cause instanceof SQLException && message.contains(sqlExceptionMessage)) {
|
||||||
LOG.info("Ignoring SQLException, " + exception, cause);
|
LOG.info("Ignoring SQLException, " + exception, cause);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue