Skip to content

OkHttpProfilerInterceptor() with init values #10

Description

@dimitar71

OkHttpProfilerInterceptor() to provide some init values and override the static ones.

Expected:

OkHttpProfilerInterceptor(
  logLength: Int = 4000, 
  bodyBufferSizeKb: Int = 1024 * 1024 * 10, 
  slowDownPartsAfter: Int = 20,
  allowLogcatLogging: Boolean = true
)

Is it possible to expose certain values, which we can tweak?

E.g.

Log.v() in LogDataTransfer.fastLog() is very noisy. If possible not to log would be nice.

And also these values:

private static final int LOG_LENGTH = 4000;
private static final int SLOW_DOWN_PARTS_AFTER = 20;
private static final int BODY_BUFFER_SIZE = 1024 * 1024 * 10;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions