This repository was archived by the owner on Apr 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
ols-apps/ols-indexer/src/main/java/uk/ac/ebi/spot/ols Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -173,22 +173,22 @@ else if (deleteOntologies.length > 0){
173
173
else {
174
174
// otherwise load everything set TOLOAD
175
175
for (OntologyDocument document : ontologyRepositoryService .getAllDocumentsByStatus (Status .TOLOAD )) {
176
- // try {
176
+ try {
177
177
boolean loadResult = ontologyIndexingService .indexOntologyDocument (document );
178
178
if (loadResult )
179
179
updatedOntologies .add (document .getOntologyId ());
180
180
else {
181
181
haserror = true ;
182
182
failingOntologies .put (document .getOntologyId (), "An error occurred. Check logs." );
183
183
}
184
- // } catch (Throwable t) {
185
- // logger.error("Application failed creating indexes for " + document.getOntologyId() + ": " +
186
- // t.getMessage(), t);
187
- // exceptions.append(t.getMessage());
188
- // exceptions.append("\n");
189
- // haserror = true;
190
- // failingOntologies.put(document.getOntologyId(),t.getMessage());
191
- // }
184
+ } catch (Throwable t ) {
185
+ logger .error ("Application failed creating indexes for " + document .getOntologyId () + ": " +
186
+ t .getMessage (), t );
187
+ exceptions .append (t .getMessage ());
188
+ exceptions .append ("\n " );
189
+ haserror = true ;
190
+ failingOntologies .put (document .getOntologyId (),t .getMessage ());
191
+ }
192
192
}
193
193
}
194
194
You can’t perform that action at this time.
0 commit comments