Skip to content

Commit

Permalink
Add the exception into the log.error memthod.
Browse files Browse the repository at this point in the history
  • Loading branch information
taojing2002 committed Apr 22, 2024
1 parent 5848386 commit d06ac51
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 d06ac51

Please sign in to comment.