Project

General

Profile

« Previous | Next » 

Revision 6376

Added by Chris Jones over 13 years ago

Update the d1 common java jar to include the changes to BaseException, and update MNodeService.synchronizationFailed() to use the BaseException.getNodeId() method to report which node the exception came from.

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
948 948
    logMetacat.debug("Synchronization for the object identified by " +
949 949
      syncFailed.getPid() + 
950 950
      " failed from " +
951
      "CN URL WILL GO HERE." +
951
      syncFailed.getNodeId() +
952 952
      " Logging the event to the Metacat EventLog as a 'syncFailed' event.");
953 953
    // TODO: use the event type enum when the SYNCHRONIZATION_FAILED event is added
954
    EventLog.getInstance().log("CN URL WILL GO HERE", 
954
    EventLog.getInstance().log(syncFailed.getNodeId(), 
955 955
      session.getSubject().getValue(), localId, "synchronization_failed");
956 956
    //EventLog.getInstance().log("CN URL WILL GO HERE", 
957 957
    //  session.getSubject().getValue(), localId, Event.SYNCHRONIZATION_FAILED);

Also available in: Unified diff