Revision 10447
Added by Jing Tao about 7 years ago
metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/SolrIndex.java | ||
---|---|---|
503 | 503 |
// insert the whole thing |
504 | 504 |
insertToIndex(doc); |
505 | 505 |
} catch (Exception e) { |
506 |
String error = "SolrIndex.insetFields - could not update the solr index: " + e.getMessage();
|
|
506 |
String error = "SolrIndex.insetFields - could not update the solr index for the object "+pid.getValue()+" since " + e.getMessage();
|
|
507 | 507 |
writeEventLog(null, pid, error); |
508 | 508 |
log.error(error, e); |
509 | 509 |
} |
... | ... | |
592 | 592 |
update(pid, systemMetadata, objectPath); |
593 | 593 |
EventlogFactory.createIndexEventLog().remove(pid); |
594 | 594 |
} catch (Exception e) { |
595 |
String error = "SolrIndex.update - could not update the solr index since " + e.getMessage(); |
|
595 |
String error = "SolrIndex.update - could not update the solr index for the object "+pid.getValue()+" since " + e.getMessage();
|
|
596 | 596 |
writeEventLog(systemMetadata, pid, error); |
597 | 597 |
log.error(error, e); |
598 | 598 |
} |
Also available in: Unified diff
Add the pid information into the error log.