ARTEMIS-2693 Improve log of starting acceptor errors
Add the log of starting acceptor errors to simplify the detection of the failing acceptor in case of multiple acceptors.
This commit is contained in:
parent
a03e2f1726
commit
5f5c47e8a5
|
@ -308,7 +308,12 @@ public class RemotingServiceImpl implements RemotingService, ServerConnectionLif
|
|||
public synchronized void startAcceptors() throws Exception {
|
||||
if (isStarted()) {
|
||||
for (Acceptor a : acceptors.values()) {
|
||||
a.start();
|
||||
try {
|
||||
a.start();
|
||||
} catch (Throwable t) {
|
||||
ActiveMQServerLogger.LOGGER.errorStartingAcceptor(a.getName(), a.getConfiguration());
|
||||
throw t;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2069,4 +2069,8 @@ public interface ActiveMQServerLogger extends BasicLogger {
|
|||
@LogMessage(level = Logger.Level.INFO)
|
||||
@Message(id = 224103, value = "unable to undeploy queue {0} : reason {1}", format = Message.Format.MESSAGE_FORMAT)
|
||||
void unableToUndeployQueue(SimpleString queueName, String reason);
|
||||
|
||||
@LogMessage(level = Logger.Level.ERROR)
|
||||
@Message(id = 224104, value = "Error starting the Acceptor {0} {1}", format = Message.Format.MESSAGE_FORMAT)
|
||||
void errorStartingAcceptor(String name, Object configuration);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue