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
No related branches found
No related tags found
No related merge requests found
Pipeline #3415 passed
......@@ -70,7 +70,7 @@
</fr:x_form>
</pl:initParameters>
<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:module>Repository</pl:module>
<pl:generalType>TASK</pl:generalType>
......
......@@ -467,10 +467,11 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
}
try (OutputStream output = java.nio.file.Files.newOutputStream( Paths.get( absolute_destFilePath)))
{
var blocksize = getBlockSize();
long starttime = System.currentTimeMillis();
IOUtil.copy(is, output, getBlockSize());
IOUtil.copy(is, output, blocksize);
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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment