Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OkHttpProfilerInterceptor() with init values #43

Open
dimitar71 opened this issue Nov 27, 2023 · 0 comments
Open

OkHttpProfilerInterceptor() with init values #43

dimitar71 opened this issue Nov 27, 2023 · 0 comments

Comments

@dimitar71
Copy link

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant