Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 460f85f

Browse files
committed
Remove binary file logs
1 parent 943c5ec commit 460f85f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/network/ChunkFromFileRequestBody.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,12 @@ public void writeTo(BufferedSink sink) {
8484
long maxCount = Math.min(mOffset + mChunkSize, mChannel.size());
8585
while (mChannel.position() < maxCount) {
8686

87-
Timber.v("Sink buffer size: %s", sink.buffer().size());
88-
8987
readCount = mChannel.read(mBuffer);
9088

91-
Timber.v("Read " + readCount + " bytes from file channel to " + mBuffer.toString());
92-
93-
sink.buffer().write(mBuffer.array(), 0, readCount);
89+
sink.getBuffer().write(mBuffer.array(), 0, readCount);
9490

9591
sink.flush();
9692

97-
Timber.v("Write " + readCount + " bytes to sink buffer with size " + sink.buffer().size());
98-
9993
mBuffer.clear();
10094
if (mTransferred < maxCount) { // condition to avoid accumulate progress for repeated chunks
10195
mTransferred += readCount;

0 commit comments

Comments
 (0)