Skip to content

Reduce logging in ChunkFromFileRequestBody #2743

@mueller-ma

Description

@mueller-ma

Is your feature request related to a problem? Please describe.
I wanted to track down a bug while uploading a video (The video upload was canceled with "Unknown error". Now it doesn't appear again), but I only see the following three messages over a dozen of times per second. This makes the log viewer in Android Studio unusable.

2019-11-30 11:53:51.628 22964-16558/com.owncloud.android D/ChunkFromFileRequestBody: Read 4096 bytes from file channel to java.nio.HeapByteBuffer[pos=4096 lim=4096 cap=4096]
2019-11-30 11:53:51.631 22964-16558/com.owncloud.android D/ChunkFromFileRequestBody: Write 4096 bytes to sink buffer with size 0
2019-11-30 11:53:51.631 22964-16558/com.owncloud.android D/ChunkFromFileRequestBody: Sink buffer size: 0

Describe the solution you'd like
Remove the logging from there.

Describe alternatives you've considered
Make the logging debug version only.

TASKS

  • Research (if needed)
  • Create branch feature/feature_name
  • Development tasks
    • Implement whatever
    • ...
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/feature_name into master

PR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions