ARTEMIS-2106 log failure to start broker
This commit is contained in:
parent
c035c55167
commit
59ad650a13
|
@ -1968,4 +1968,8 @@ public interface ActiveMQServerLogger extends BasicLogger {
|
||||||
@LogMessage(level = Logger.Level.ERROR)
|
@LogMessage(level = Logger.Level.ERROR)
|
||||||
@Message(id = 224096, value = "Error setting up connection from {0} to {1}; protocol {2} not found in map: {3}", format = Message.Format.MESSAGE_FORMAT)
|
@Message(id = 224096, value = "Error setting up connection from {0} to {1}; protocol {2} not found in map: {3}", format = Message.Format.MESSAGE_FORMAT)
|
||||||
void failedToFindProtocolManager(String remoteAddress, String localAddress, String intendedProtocolManager, String protocolMap);
|
void failedToFindProtocolManager(String remoteAddress, String localAddress, String intendedProtocolManager, String protocolMap);
|
||||||
|
|
||||||
|
@LogMessage(level = Logger.Level.ERROR)
|
||||||
|
@Message(id = 224097, value = "Failed to start server", format = Message.Format.MESSAGE_FORMAT)
|
||||||
|
void failedToStartServer(@Cause Throwable t);
|
||||||
}
|
}
|
||||||
|
|
|
@ -487,6 +487,8 @@ public class ActiveMQServerImpl implements ActiveMQServer {
|
||||||
SERVER_STATE originalState = state;
|
SERVER_STATE originalState = state;
|
||||||
try {
|
try {
|
||||||
internalStart();
|
internalStart();
|
||||||
|
} catch (Throwable t) {
|
||||||
|
ActiveMQServerLogger.LOGGER.failedToStartServer(t);
|
||||||
} finally {
|
} finally {
|
||||||
if (originalState == SERVER_STATE.STOPPED) {
|
if (originalState == SERVER_STATE.STOPPED) {
|
||||||
networkHealthCheck.setTimeUnit(TimeUnit.MILLISECONDS).setPeriod(configuration.getNetworkCheckPeriod()).
|
networkHealthCheck.setTimeUnit(TimeUnit.MILLISECONDS).setPeriod(configuration.getNetworkCheckPeriod()).
|
||||||
|
|
Loading…
Reference in New Issue