Project

General

Profile

« Previous | Next » 

Revision 43832

printing store id in logs when creating/ensuring indexes

View differences:

MongoPublisherStore.java
183 183
		Stopwatch sw = Stopwatch.createUnstarted();
184 184
		sw.start();
185 185
		// I want to keep the composite indexes that might have been defined manually
186
		log.debug("Ensuring currently defined composite indexes:");
186
		log.debug("Ensuring currently defined composite indexes on store "+id+": ");
187 187
		for (BasicDBObject o : indexesIterable) {
188 188
			BasicDBObject fieldIndexed = (BasicDBObject) o.get("key");
189 189
			if (fieldIndexed.keySet().size() > 1) {
......
191 191
				this.collection.createIndex(fieldIndexed, indexOptions);
192 192
			}
193 193
		}
194

  
195 194
		// Indexes on single fields.
196 195
		for (PublisherField field : this.mongoFields) {
197 196
			BasicDBObject mongoIdx = new BasicDBObject(field.getFieldName(), 1);
198
			log.debug("Creating index : " + mongoIdx);
197
			log.debug("Creating index on store "+id+" : " + mongoIdx);
199 198
			this.collection.createIndex(mongoIdx, indexOptions);
200 199
		}
201 200
		log.debug("Creating index over : " + OAIConfigurationReader.DATESTAMP_FIELD);

Also available in: Unified diff