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

- minor fix in logging output

parent 17a0fc10
Branches
No related tags found
No related merge requests found
Pipeline #3415 passed
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</fr:x_form> </fr:x_form>
</pl:initParameters> </pl:initParameters>
<pl:description>SLUB Storage Plugin</pl:description> <pl:description>SLUB Storage Plugin</pl:description>
<pl:version>2.841</pl:version> <pl:version>2.842</pl:version>
<pl:materialType>DIGITAL</pl:materialType> <pl:materialType>DIGITAL</pl:materialType>
<pl:module>Repository</pl:module> <pl:module>Repository</pl:module>
<pl:generalType>TASK</pl:generalType> <pl:generalType>TASK</pl:generalType>
......
...@@ -467,10 +467,11 @@ public class SLUBStoragePlugin extends AbstractStorageHandler { ...@@ -467,10 +467,11 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
} }
try (OutputStream output = java.nio.file.Files.newOutputStream( Paths.get( absolute_destFilePath))) try (OutputStream output = java.nio.file.Files.newOutputStream( Paths.get( absolute_destFilePath)))
{ {
var blocksize = getBlockSize();
long starttime = System.currentTimeMillis(); long starttime = System.currentTimeMillis();
IOUtil.copy(is, output, getBlockSize()); IOUtil.copy(is, output, blocksize);
long endtime = System.currentTimeMillis(); long endtime = System.currentTimeMillis();
log.info("SLUBStoragePlugin.storeEntity() try copy (IOUtil.copy(is, '"+absolute_destFilePath+"', blocksize) was successfull (" + throughput(starttime, endtime, absolute_destFilePath)+ ")" ); log.info("SLUBStoragePlugin.storeEntity() try copy (IOUtil.copy(is, '"+absolute_destFilePath+"', "+blocksize+") was successfull (" + throughput(starttime, endtime, absolute_destFilePath)+ ")" );
} }
} }
if (!checkFixity(storedEntityMetadata.getFixities(), storedEntityIdentifier)) { if (!checkFixity(storedEntityMetadata.getFixities(), storedEntityIdentifier)) {
...@@ -631,9 +632,9 @@ public class SLUBStoragePlugin extends AbstractStorageHandler { ...@@ -631,9 +632,9 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
contractAssertIsRelativePath(relativePath); contractAssertIsRelativePath(relativePath);
paths.put("relativeDirectoryPath", relativePath); paths.put("relativeDirectoryPath", relativePath);
log.info( log.info(
"SLUBStoragePlugin.getStoreEntityIdentifier() stored: " "SLUBStoragePlugin.getStoreEntityIdentifier() stored:"
+ "destFilePath='" + destFilePath + "'" + " destFilePath='" + destFilePath + "'"
+ "relativeDirectoryPath='" + relativePath + "'" + " relativeDirectoryPath='" + relativePath + "'"
); );
return paths; return paths;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment