diff options
author | Simon Rettberg | 2022-03-16 10:14:33 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-03-16 10:14:33 +0100 |
commit | 2b01225b49a96da326ca54386f71573c2bd8452b (patch) | |
tree | 6bc2136ae82d7ce5fe5d5ec36b3ffdeb0a39894e /src | |
parent | [vmware] Add svga.graphicsMemoryKB to whitelist (diff) | |
download | master-sync-shared-2b01225b49a96da326ca54386f71573c2bd8452b.tar.gz master-sync-shared-2b01225b49a96da326ca54386f71573c2bd8452b.tar.xz master-sync-shared-2b01225b49a96da326ca54386f71573c2bd8452b.zip |
Improve logging a bit, fix spelling
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/openslx/filetransfer/util/ChunkList.java | 2 | ||||
-rw-r--r-- | src/main/java/org/openslx/filetransfer/util/IncomingTransferBase.java | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/org/openslx/filetransfer/util/ChunkList.java b/src/main/java/org/openslx/filetransfer/util/ChunkList.java index ef327e5..a7e0fdd 100644 --- a/src/main/java/org/openslx/filetransfer/util/ChunkList.java +++ b/src/main/java/org/openslx/filetransfer/util/ChunkList.java @@ -205,7 +205,7 @@ public class ChunkList missingChunks.addAll( append ); } } catch ( Exception e ) { - LOGGER.warn( "chunk clone list if messed up", e ); + LOGGER.warn( "chunk clone list is messed up", e ); } } } diff --git a/src/main/java/org/openslx/filetransfer/util/IncomingTransferBase.java b/src/main/java/org/openslx/filetransfer/util/IncomingTransferBase.java index cadcf3c..dfe007b 100644 --- a/src/main/java/org/openslx/filetransfer/util/IncomingTransferBase.java +++ b/src/main/java/org/openslx/filetransfer/util/IncomingTransferBase.java @@ -216,11 +216,11 @@ public abstract class IncomingTransferBase extends AbstractTransfer implements H public void updateBlockHashList( List<byte[]> hashList ) { if ( state != TransferState.IDLE && state != TransferState.WORKING ) { - LOGGER.debug( this.getId() + ": Rejecting block hash list in state " + state ); + LOGGER.info( this.getId() + ": Rejecting block hash list in state " + state ); return; } if ( hashList == null ) { - LOGGER.debug( this.getId() + ": Rejecting null block hash list" ); + LOGGER.info( this.getId() + ": Rejecting null block hash list" ); return; } int firstNew = chunks.updateSha1Sums( hashList ); @@ -564,7 +564,7 @@ public abstract class IncomingTransferBase extends AbstractTransfer implements H public void hashCheckDone( HashResult result, byte[] data, FileChunk chunk ) { if ( state != TransferState.IDLE && state != TransferState.WORKING ) { - LOGGER.debug( "hashCheckDone called in bad state " + state.name() ); + LOGGER.warn( "hashCheckDone called in bad state " + state.name() ); return; } switch ( result ) { @@ -618,7 +618,7 @@ public abstract class IncomingTransferBase extends AbstractTransfer implements H try { data = loadChunkFromFile( chunk ); } catch ( EOFException e1 ) { - LOGGER.warn( "Cannot queue unhashed chunk: file too short. Marking is invalid." ); + LOGGER.warn( "Cannot queue unhashed chunk: file too short. Marking as invalid." ); chunks.markFailed( chunk ); chunkStatusChanged( chunk ); return; |