Skip to content
Snippets Groups Projects
Commit f4f0d578 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- fixed log output

parent 809988f7
No related branches found
No related tags found
No related merge requests found
Pipeline #3413 passed
...@@ -266,14 +266,13 @@ public class SLUBStoragePlugin extends AbstractStorageHandler { ...@@ -266,14 +266,13 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
//log.debug("SLUBStoragePlugin.checkFixityByPlugin() another fixity, root=" + getDirRoot() + " absolute_storedEntityIdentifier=" + absolute_storedEntityIdentifier); //log.debug("SLUBStoragePlugin.checkFixityByPlugin() another fixity, root=" + getDirRoot() + " absolute_storedEntityIdentifier=" + absolute_storedEntityIdentifier);
contractAssertIsAbsolutePath(absolute_storedEntityIdentifier); contractAssertIsAbsolutePath(absolute_storedEntityIdentifier);
String pluginname = fixity.getPluginName(); String pluginname = fixity.getPluginName();
String algorithm = "should not occur";
//log.debug("SLUBStoragePlugin.checkFixityByPlugin() pluginname=" + pluginname); //log.debug("SLUBStoragePlugin.checkFixityByPlugin() pluginname=" + pluginname);
// HINT: Workaround for Rosetta case 06472860 - Storage Plugin: Empty custom fixity plugin name breaks file updates [Rosetta 7.3.0.0] // HINT: Workaround for Rosetta case 06472860 - Storage Plugin: Empty custom fixity plugin name breaks file updates [Rosetta 7.3.0.0]
// -> use fallback names in case fixity plugin name is missing // -> use fallback names in case fixity plugin name is missing
if (pluginname == null || pluginname.length() == 0) { if (pluginname == null || pluginname.length() == 0) {
log.warn("SLUBStoragePlugin.checkFixityByPlugin() failed to get pluginname, because it is empty. Possibly, there is no valid fixity type used or a CustomFixityPlugin missed"); log.warn("SLUBStoragePlugin.checkFixityByPlugin() failed to get pluginname, because it is empty. Possibly, there is no valid fixity type used or a CustomFixityPlugin missed");
log.warn("SLUBStoragePlugin.checkFixityByPlugin() trying to use fallback table to determine plugin name"); log.warn("SLUBStoragePlugin.checkFixityByPlugin() trying to use fallback table to determine plugin name");
algorithm = fixity.getAlgorithm(); String algorithm = fixity.getAlgorithm();
if ("SHA512".equals(algorithm)) { if ("SHA512".equals(algorithm)) {
pluginname = "CustomFixitySHA512Plugin"; pluginname = "CustomFixitySHA512Plugin";
//log.debug("SLUBStoragePlugin.checkFixityByPlugin() pluginname=" + pluginname); //log.debug("SLUBStoragePlugin.checkFixityByPlugin() pluginname=" + pluginname);
...@@ -298,7 +297,7 @@ public class SLUBStoragePlugin extends AbstractStorageHandler { ...@@ -298,7 +297,7 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
boolean result = fixity.getResult(); boolean result = fixity.getResult();
long endtime = System.currentTimeMillis(); long endtime = System.currentTimeMillis();
log.info("SLUBStoragePlugin.checkFixityByPlugin() pathname='" + absolute_storedEntityIdentifier + "'" log.info("SLUBStoragePlugin.checkFixityByPlugin() pathname='" + absolute_storedEntityIdentifier + "'"
+ " algorithm=" + algorithm + " plugin=" + pluginname
+ " oldvalue=" + oldValue + " oldvalue=" + oldValue
+ " newvalue=" + newValue + " newvalue=" + newValue
+ " result=" + result + " result=" + result
...@@ -521,7 +520,7 @@ public class SLUBStoragePlugin extends AbstractStorageHandler { ...@@ -521,7 +520,7 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
//log.debug("SLUBStoragePlugin.copyStream() pid='" + pid + "'"); //log.debug("SLUBStoragePlugin.copyStream() pid='" + pid + "'");
String iePid = storedEntityMetadata.getIePid(); String iePid = storedEntityMetadata.getIePid();
//log.debug("SLUBStoragePlugin.copyStream() iePid='" + iePid + "'"); //log.debug("SLUBStoragePlugin.copyStream() iePid='" + iePid + "'");
String attr = "('\"+srcPath+\"','\" + destPath + \"')"; String attr = "('"+srcPath+"','" + destPath + "')";
if ("copy".equalsIgnoreCase(filesHandlingMethod)) { if ("copy".equalsIgnoreCase(filesHandlingMethod)) {
// FileUtil.copyFile(srcPath, destPath); // FileUtil.copyFile(srcPath, destPath);
copyFile(srcPath, destPath); copyFile(srcPath, destPath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment