mirror of https://github.com/apache/activemq.git
[AMQ-7301] Fix build and using a single log message
This commit is contained in:
parent
ee61ed69f8
commit
960bc24d17
|
@ -87,6 +87,11 @@
|
|||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>${guava-version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<reporting>
|
||||
|
|
|
@ -240,10 +240,9 @@ public class TransportConnector implements Connector, BrokerServiceAware {
|
|||
|
||||
private void onAcceptError(Exception error, String remoteHost) {
|
||||
if (brokerService != null && brokerService.isStopping()) {
|
||||
LOG.info("Could not accept connection during shutdown {} : {}", (remoteHost == null ? "" : "from " + remoteHost), error.getLocalizedMessage());
|
||||
LOG.info("Could not accept connection during shutdown {} : {} ({})", (remoteHost == null ? "" : "from " + remoteHost), error.getLocalizedMessage(), Throwables.getRootCause(error).getMessage());
|
||||
} else {
|
||||
LOG.warn("Could not accept connection from {}: {}", (remoteHost == null ? "" : "from " + remoteHost), error.getMessage());
|
||||
LOG.warn("Root cause of connection error: {}", Throwables.getRootCause(error).getMessage());
|
||||
LOG.warn("Could not accept connection from {}: {} ({})", (remoteHost == null ? "" : "from " + remoteHost), error.getMessage(), Throwables.getRootCause(error).getMessage());
|
||||
LOG.debug("Reason: " + error.getMessage(), error);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,7 +102,8 @@
|
|||
com.google.errorprone.annotations.concurrent,
|
||||
com.google.j2objc.annotations,
|
||||
org.linkedin*,
|
||||
org.iq80*
|
||||
org.iq80*,
|
||||
com.google.common.base
|
||||
</activemq.osgi.private.pkg>
|
||||
<activemq.osgi.dynamic.import>*</activemq.osgi.dynamic.import>
|
||||
<surefire.argLine>-Xmx512M</surefire.argLine>
|
||||
|
|
Loading…
Reference in New Issue