summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Ritter2024-07-11 16:14:26 +0200
committerSteffen Ritter2024-07-11 16:14:26 +0200
commit26340b72e56509c2dd2650662cc30f22441ec1a6 (patch)
tree1fe32f205d190d8d5cf3f1b3f1d408ab5c197276
parent[client] Allow publishing of vbox and qemu VMs (diff)
downloadtutor-module-26340b72e56509c2dd2650662cc30f22441ec1a6.tar.gz
tutor-module-26340b72e56509c2dd2650662cc30f22441ec1a6.tar.xz
tutor-module-26340b72e56509c2dd2650662cc30f22441ec1a6.zip
[server] Log readable name on image upload to master
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/SyncTransferHandler.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/SyncTransferHandler.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/SyncTransferHandler.java
index 54a9655e..8d17fa15 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/SyncTransferHandler.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/SyncTransferHandler.java
@@ -129,19 +129,19 @@ public class SyncTransferHandler {
TransferInformation transferInfo;
OutgoingDataTransfer existing = uploadsByVersionId.get(imgVersion.imageVersionId);
if (existing != null) {
- LOGGER.info("Client wants to upload image " + imgVersion.imageVersionId
+ LOGGER.info("Client wants to upload image " + imgVersion.imageVersionId + " of '" + imgBase.imageName + "' to master"
+ " which is already in progess via " + existing.getId());
return existing.getId();
}
File absFile = FileSystem.composeAbsoluteImagePath(imgVersion);
if (!absFile.isFile() || !absFile.canRead()) {
- LOGGER.error("Cannot upload " + imgVersion.imageVersionId + ": file missing: "
+ LOGGER.error("Cannot upload " + imgVersion.imageVersionId + " of '" + imgBase.imageName + "': file missing: "
+ absFile.getAbsolutePath());
DbImage.markValid(false, true, imgVersion);
throw new TInvocationException(InvocationError.INTERNAL_SERVER_ERROR, "Source file not readable");
}
if (absFile.length() != imgVersion.fileSize) {
- LOGGER.error("Cannot upload" + imgVersion.imageVersionId + ": wrong file size - expected "
+ LOGGER.error("Cannot upload" + imgVersion.imageVersionId + " of '" + imgBase.imageName + "': wrong file size - expected "
+ imgVersion.fileSize + ", got " + absFile.length());
DbImage.markValid(false, true, imgVersion);
throw new TInvocationException(InvocationError.INTERNAL_SERVER_ERROR,
@@ -187,7 +187,7 @@ public class SyncTransferHandler {
OutgoingDataTransfer transfer = new OutgoingDataTransfer(transferInfo, absFile, imgVersion.imageVersionId);
uploadsByVersionId.put(imgVersion.imageVersionId, transfer);
uploadsByTransferId.put(transfer.getId(), transfer);
- LOGGER.info("Client wants to upload image " + imgVersion.imageVersionId
+ LOGGER.info("Client wants to upload image " + imgVersion.imageVersionId + " of '" + imgBase.imageName + "' to master"
+ ", created transfer " + transfer.getId());
heartBeatTask.fire();
return transfer.getId();