Skip to content
Snippets Groups Projects
Commit 0a51f55f authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

- reduced log entries (not needed on every fixity for every file)

parent d53292da
No related branches found
No related tags found
No related merge requests found
...@@ -93,14 +93,14 @@ public class SLUBStoragePlugin extends AbstractStorageHandler { ...@@ -93,14 +93,14 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
Checksummer checksummer = new Checksummer(is, true, true, true,true); Checksummer checksummer = new Checksummer(is, true, true, true,true);
for (Fixity fixity : fixities) { for (Fixity fixity : fixities) {
fixity.setResult(Boolean.FALSE); fixity.setResult(Boolean.FALSE);
log.info("SLUBStoragePlugin.checkFixity() FixityAlgorithm.MD5=" + Fixity.FixityAlgorithm.MD5.toString());
log.info("SLUBStoragePlugin.checkFixity() FixityAlgorithm.SHA1=" + Fixity.FixityAlgorithm.SHA1.toString());
log.info("SLUBStoragePlugin.checkFixity() FixityAlgorithm.SHA256=" + Fixity.FixityAlgorithm.SHA256.toString());
log.info("SLUBStoragePlugin.checkFixity() FixityAlgorithm.CRC32=" + Fixity.FixityAlgorithm.CRC32.toString());
String algorithm = fixity.getAlgorithm(); String algorithm = fixity.getAlgorithm();
/* HINT: in past versions of Rosetta was a workaround for fixity.getAlgorithm() required, /* HINT: in past versions of Rosetta was a workaround for fixity.getAlgorithm() required,
a lowercase string was returned instead of the correct fixity code table entry */ a lowercase string was returned instead of the correct fixity code table entry */
log.info("SLUBStoragePlugin.checkFixity() getAlgorithm=" + algorithm); log.info("SLUBStoragePlugin.checkFixity() getAlgorithm=" + algorithm);
// log.info("SLUBStoragePlugin.checkFixity() FixityAlgorithm.MD5=" + Fixity.FixityAlgorithm.MD5.toString());
// log.info("SLUBStoragePlugin.checkFixity() FixityAlgorithm.SHA1=" + Fixity.FixityAlgorithm.SHA1.toString());
// log.info("SLUBStoragePlugin.checkFixity() FixityAlgorithm.SHA256=" + Fixity.FixityAlgorithm.SHA256.toString());
// log.info("SLUBStoragePlugin.checkFixity() FixityAlgorithm.CRC32=" + Fixity.FixityAlgorithm.CRC32.toString());
if ( if (
(!Fixity.FixityAlgorithm.MD5.toString().equals(algorithm)) && (!Fixity.FixityAlgorithm.MD5.toString().equals(algorithm)) &&
(!Fixity.FixityAlgorithm.SHA1.toString().equals(algorithm)) && (!Fixity.FixityAlgorithm.SHA1.toString().equals(algorithm)) &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment