mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Remove binary file logs
This commit is contained in:
parent
943c5ecb97
commit
460f85f2e1
@ -84,18 +84,12 @@ public class ChunkFromFileRequestBody extends FileRequestBody {
|
|||||||
long maxCount = Math.min(mOffset + mChunkSize, mChannel.size());
|
long maxCount = Math.min(mOffset + mChunkSize, mChannel.size());
|
||||||
while (mChannel.position() < maxCount) {
|
while (mChannel.position() < maxCount) {
|
||||||
|
|
||||||
Timber.v("Sink buffer size: %s", sink.buffer().size());
|
|
||||||
|
|
||||||
readCount = mChannel.read(mBuffer);
|
readCount = mChannel.read(mBuffer);
|
||||||
|
|
||||||
Timber.v("Read " + readCount + " bytes from file channel to " + mBuffer.toString());
|
sink.getBuffer().write(mBuffer.array(), 0, readCount);
|
||||||
|
|
||||||
sink.buffer().write(mBuffer.array(), 0, readCount);
|
|
||||||
|
|
||||||
sink.flush();
|
sink.flush();
|
||||||
|
|
||||||
Timber.v("Write " + readCount + " bytes to sink buffer with size " + sink.buffer().size());
|
|
||||||
|
|
||||||
mBuffer.clear();
|
mBuffer.clear();
|
||||||
if (mTransferred < maxCount) { // condition to avoid accumulate progress for repeated chunks
|
if (mTransferred < maxCount) { // condition to avoid accumulate progress for repeated chunks
|
||||||
mTransferred += readCount;
|
mTransferred += readCount;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user