Project

General

Profile

« Previous | Next » 

Revision 6963

additional logging of the config file being used - seem to have thread locking on the xmlConfig use when running under ant/junit

View differences:

src/edu/ucsb/nceas/metacat/dataone/hazelcast/HazelcastService.java
157 157
   */
158 158
  public void init() throws ServiceException {
159 159
    
160
    logMetacat.debug("HazelcastService.doRefresh() called.");
160
    logMetacat.debug("HazelcastService.init() called.");
161 161
    
162 162
	String configFileName = null;
163 163
	Config config = null;
......
165 165
		configFileName = PropertyService.getProperty("dataone.hazelcast.configFilePath");
166 166
		config = new FileSystemXmlConfig(configFileName);
167 167
	} catch (Exception e) {
168
		logMetacat.warn("Custom Hazelcast configuration not defined, using default.", e);
169 168
		configFileName = PropertyService.CONFIG_FILE_DIR + FileUtil.getFS() + "hazelcast.xml";
169
		logMetacat.warn("Custom Hazelcast configuration not defined, using default: " + configFileName);
170 170
		// make sure we have the config
171 171
		try {
172 172
			config = new FileSystemXmlConfig(configFileName);

Also available in: Unified diff