logServerId(LoggerFactory.getLogger(LogServerId.class));
}
@VisibleForTesting
protected void logServerId(Logger logger) {
PropertyDto serverIdProp = propertiesDao.selectGlobalProperty(CoreProperties.PERMANENT_SERVER_ID);
if (serverIdProp != null) {
// a server ID has been generated, let's print out the other useful informations that can help debugging license issues
PropertyDto organisationProp = propertiesDao.selectGlobalProperty(CoreProperties.ORGANISATION);
PropertyDto ipAddressProp = propertiesDao.selectGlobalProperty(CoreProperties.SERVER_ID_IP_ADDRESS);
StringBuilder message = new StringBuilder("Server information:\n");
message.append(" - ID : ");
addQuotedValue(serverIdProp, message);
message.append(" - Organisation : ");