error log message for duplicate or missing collection id is not very helpful #24
Labels
collection record
issues related to the collection record
error log enhancement
issue related to idea to enhance the error log
The log messages are not very helpful.
For example:
Empty collection ID. Changed to ##4ld
aspaceCopyUtil.addErrorMessage("Empty collection ID. Changed to " + id + "\n");
https://github.com/archivesspace/archon-migration/blob/5ab5bc4aed3607a71923ec91e0a515680c361f7b/src/org/nyu/edu/dlts/utils/ASpaceMapper.java#L950
The error would be easier to debug if this included the Archon id:
aspaceCopyUtil.addErrorMessage("Empty collection ID for collection with Archon ID " + dbId + ". Changed to " + id + "\n");
Similarly, for duplicate IDs (hopefully will not be an issue if we add the prefix, but just in case):
message = "Duplicate Resource Id: " + id + " Changed to: " + fullId + "\n";
https://github.com/archivesspace/archon-migration/blob/5ab5bc4aed3607a71923ec91e0a515680c361f7b/src/org/nyu/edu/dlts/utils/ASpaceMapper.java#L1699
Adding in the Archon ID:
message = "Duplicate Resource Id: " + id +"(Archon ID " + dbId + ") Changed to: " + fullId + "\n";
The text was updated successfully, but these errors were encountered: