ARTEMIS-4134: list the version in initial boostrap log message, make it available earlier and more obviously/reliably than later message after startup
This commit is contained in:
parent
bb8761fcd2
commit
9ff5c0f426
|
@ -30,6 +30,7 @@ import org.apache.activemq.artemis.core.server.ServiceComponent;
|
|||
import org.apache.activemq.artemis.dto.ServerDTO;
|
||||
import org.apache.activemq.artemis.integration.bootstrap.ActiveMQBootstrapLogger;
|
||||
import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager;
|
||||
import org.apache.activemq.artemis.utils.VersionLoader;
|
||||
|
||||
public class FileBroker implements Broker {
|
||||
|
||||
|
@ -59,7 +60,8 @@ public class FileBroker implements Broker {
|
|||
}
|
||||
|
||||
ArrayList<ActiveMQComponent> componentsByStartOrder = getComponentsByStartOrder(components);
|
||||
ActiveMQBootstrapLogger.LOGGER.serverStarting();
|
||||
String fullVersion = VersionLoader.getVersion().getFullVersion();
|
||||
ActiveMQBootstrapLogger.LOGGER.serverStarting(fullVersion);
|
||||
for (ActiveMQComponent component : componentsByStartOrder) {
|
||||
component.start();
|
||||
}
|
||||
|
|
|
@ -28,8 +28,8 @@ public interface ActiveMQBootstrapLogger {
|
|||
|
||||
ActiveMQBootstrapLogger LOGGER = BundleFactory.newBundle(ActiveMQBootstrapLogger.class, ActiveMQBootstrapLogger.class.getPackage().getName());
|
||||
|
||||
@LogMessage(id = 101000, value = "Starting ActiveMQ Artemis Server", level = LogMessage.Level.INFO)
|
||||
void serverStarting();
|
||||
@LogMessage(id = 101000, value = "Starting ActiveMQ Artemis Server version {}", level = LogMessage.Level.INFO)
|
||||
void serverStarting(String version);
|
||||
|
||||
@LogMessage(id = 101001, value = "Stopping ActiveMQ Artemis Server", level = LogMessage.Level.INFO)
|
||||
void serverStopping();
|
||||
|
|
Loading…
Reference in New Issue