mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
85542: Tweak to error logging
This commit is contained in:
@@ -228,14 +228,15 @@ public class MediaFilterServiceImpl implements MediaFilterService, InitializingB
|
|||||||
int assetstore = myBitstream.getStoreNumber();
|
int assetstore = myBitstream.getStoreNumber();
|
||||||
|
|
||||||
// Printout helpful information to find the errored bitstream.
|
// Printout helpful information to find the errored bitstream.
|
||||||
logError("ERROR filtering, skipping bitstream:\n");
|
StringBuilder sb = new StringBuilder("ERROR filtering, skipping bitstream:\n");
|
||||||
logError("\tItem Handle: " + handle);
|
sb.append("\tItem Handle: ").append(handle);
|
||||||
for (Bundle bundle : bundles) {
|
for (Bundle bundle : bundles) {
|
||||||
logError("\tBundle Name: " + bundle.getName());
|
sb.append("\tBundle Name: ").append(bundle.getName());
|
||||||
}
|
}
|
||||||
logError("\tFile Size: " + size);
|
sb.append("\tFile Size: ").append(size);
|
||||||
logError("\tChecksum: " + checksum);
|
sb.append("\tChecksum: ").append(checksum);
|
||||||
logError("\tAsset Store: " + assetstore);
|
sb.append("\tAsset Store: ").append(assetstore);
|
||||||
|
logError(sb.toString());
|
||||||
logError(e.getMessage(), e);
|
logError(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
} else if (filterClass instanceof SelfRegisterInputFormats) {
|
} else if (filterClass instanceof SelfRegisterInputFormats) {
|
||||||
|
Reference in New Issue
Block a user