From edd6f5190713ec767307a6f9e14918b1e45e446e Mon Sep 17 00:00:00 2001 From: Andreas Romeyke <andreas.romeyke@slub-dresden.de> Date: Wed, 25 Jan 2023 10:46:42 +0100 Subject: [PATCH] - added debug infos --- PLUGIN-INF/metadata_SLUBStoragePlugin.xml | 4 ++-- .../repository/plugin/storage/nfs/SLUBStoragePlugin.java | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/PLUGIN-INF/metadata_SLUBStoragePlugin.xml b/PLUGIN-INF/metadata_SLUBStoragePlugin.xml index 240772f..df3d7dd 100644 --- a/PLUGIN-INF/metadata_SLUBStoragePlugin.xml +++ b/PLUGIN-INF/metadata_SLUBStoragePlugin.xml @@ -5,7 +5,7 @@ <pl:initParameters> <fr:x_form xmlns:fr="http://com/exlibris/digitool/common/forms/xmlbeans"> <form_name>SLUBStoragePlugin_Params</form_name> - <description>SLUBTreeStoragePlugin_parameters_form</description> + <description>SLUBStoragePlugin_parameters_form</description> <version>0.1</version> <grid_x>1</grid_x> <md_format>1</md_format> @@ -70,7 +70,7 @@ </fr:x_form> </pl:initParameters> <pl:description>SLUB Storage Plugin</pl:description> - <pl:version>2.820</pl:version> + <pl:version>2.821</pl:version> <pl:materialType>DIGITAL</pl:materialType> <pl:module>Repository</pl:module> <pl:generalType>TASK</pl:generalType> diff --git a/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java b/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java index 61ba111..f3ec09a 100644 --- a/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java +++ b/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java @@ -192,7 +192,7 @@ public class SLUBStoragePlugin extends AbstractStorageHandler { is.close(); long endtime = System.currentTimeMillis(); var pathname = (isRelativePath ? DIR_ROOT : "") + storedEntityIdentifier; - log.info("SLUBStoragePlugin.checkFixity() result=" + result + " (builtin " + throughput(starttime, endtime, pathname)+ ")"); + log.info("SLUBStoragePlugin.checkFixity() pathname='"+ pathname + "' result=" + result + " (builtin " + throughput(starttime, endtime, pathname)+ ")"); return result; } @@ -233,7 +233,7 @@ public class SLUBStoragePlugin extends AbstractStorageHandler { boolean result = fixity.getResult(); long endtime = System.currentTimeMillis(); var pathname = (isRelativePath ? DIR_ROOT : "") + storedEntityIdentifier; - log.info("SLUBStoragePlugin.checkFixityByPlugin() result=" + result + " (plugins " + throughput(starttime, endtime, pathname)+ ")"); + log.info("SLUBStoragePlugin.checkFixityByPlugin() pathname='" + pathname + "' result=" + result + " (plugins " + throughput(starttime, endtime, pathname)+ ")"); return result; } @@ -370,8 +370,8 @@ public class SLUBStoragePlugin extends AbstractStorageHandler { log.info("SLUBStoragePlugin.copyStream()"); String filesHandlingMethod = FILES_HANDLING_METHOD; String srcPath = storedEntityMetadata.getCurrentFilePath(); - log.debug("SLUBStoragePlugin.copyStream() destPath='" + destPath + "'"); - log.debug("SLUBStoragePlugin.copyStream() srcPath='" + srcPath + "'"); + log.info("SLUBStoragePlugin.copyStream() destPath='" + destPath + "'"); + log.info("SLUBStoragePlugin.copyStream() srcPath='" + srcPath + "'"); log.debug("SLUBStoragePlugin.copyStream() filesHandlingMethod='" + filesHandlingMethod + "'"); String pid = storedEntityMetadata.getEntityPid(); log.debug("SLUBStoragePlugin.copyStream() pid='" + pid + "'"); @@ -397,7 +397,6 @@ public class SLUBStoragePlugin extends AbstractStorageHandler { } else { - long starttime = System.currentTimeMillis(); FileUtil.copyFile(srcPath, destPath); saveDestPathsTmpFile(iePid, pid, destPath); -- GitLab