Skip to content

Commit

Permalink
Merge pull request #82 from DataONEorg/bug-81-intermittent-failure
Browse files Browse the repository at this point in the history
Add the exception into the log.error memthod.
  • Loading branch information
taojing2002 authored Apr 22, 2024
2 parents 5848386 + d06ac51 commit 876ce1e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/main/java/org/dataone/cn/indexer/IndexWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,46 +423,46 @@ private void indexOjbect(IndexQueueMessageParser parser, long deliveryTag, boole
+ pid.getValue() + " since " + e.getMessage());
} catch (ServiceFailure e) {
logger.error("IndexWorker.indexOjbect - cannot index the task for identifier "
+ pid.getValue() + " since " + e.getMessage());
+ pid.getValue() + " since " + e.getMessage(), e);
} catch (NotFound e) {
logger.error("IndexWorker.indexOjbect - cannot index the task for identifier "
+ pid.getValue() + " since " + e.getMessage());
} catch (XPathExpressionException e) {
logger.error("IndexWorker.indexOjbect - cannot index the task for identifier "
+ pid.getValue() + " since " + e.getMessage());
+ pid.getValue() + " since " + e.getMessage(), e);
} catch (UnsupportedType e) {
logger.error("IndexWorker.indexOjbect - cannot index the task for identifier "
+ pid.getValue() + " since " + e.getMessage());
+ pid.getValue() + " since " + e.getMessage(), e);
} catch (SAXException e) {
logger.error("IndexWorker.indexOjbect - cannot index the task for identifier "
+ pid.getValue() + " since " + e.getMessage());
+ pid.getValue() + " since " + e.getMessage(), e);
} catch (ParserConfigurationException e) {
logger.error("IndexWorker.indexOjbect - cannot index the task for identifier "
+ pid.getValue() + " since " + e.getMessage());
+ pid.getValue() + " since " + e.getMessage(), e);
} catch (SolrServerException e) {
logger.error("IndexWorker.indexOjbect - cannot index the task for identifier "
+ pid.getValue() + " since " + e.getMessage());
+ pid.getValue() + " since " + e.getMessage(), e);
} catch (MarshallingException e) {
logger.error("IndexWorker.indexOjbect - cannot index the task for identifier "
+ pid.getValue() + " since " + e.getMessage());
+ pid.getValue() + " since " + e.getMessage(), e);
} catch (EncoderException e) {
logger.error("IndexWorker.indexOjbect - cannot index the task for identifier "
+ pid.getValue() + " since " + e.getMessage());
+ pid.getValue() + " since " + e.getMessage(), e);
} catch (InterruptedException e) {
logger.error("IndexWorker.indexOjbect - cannot index the task for identifier "
+ pid.getValue() + " since " + e.getMessage());
+ pid.getValue() + " since " + e.getMessage(), e);
} catch (IOException e) {
logger.error("IndexWorker.indexOjbect - cannot index the task for identifier "
+ pid.getValue() + " since " + e.getMessage());
+ pid.getValue() + " since " + e.getMessage(), e);
} catch (InvalidRequest e) {
logger.error("IndexWorker.indexOjbect - cannot index the task for identifier "
+ pid.getValue() + " since " + e.getMessage());
} catch (InstantiationException e) {
logger.error("IndexWorker.indexOjbect - cannot index the task for identifier "
+ pid.getValue() + " since " + e.getMessage());
+ pid.getValue() + " since " + e.getMessage(), e);
} catch (IllegalAccessException e) {
logger.error("IndexWorker.indexOjbect - cannot index the task for identifier "
+ pid.getValue() + " since " + e.getMessage());
+ pid.getValue() + " since " + e.getMessage(), e);
}
}

Expand Down

0 comments on commit 876ce1e

Please sign in to comment.