Updated on 2026-08-14
This commit is contained in:
parent
33c331f529
commit
b2b0b3cc72
14 changed files with 144 additions and 79 deletions
|
|
@ -44,7 +44,12 @@ class NetworkLogsSaveInterceptor(
|
|||
throw e
|
||||
}
|
||||
|
||||
if (restrictedForLogURLs.contains(request.url.host + request.url.encodedPath)) {
|
||||
val host = request.url.host
|
||||
val path = request.url.encodedPath
|
||||
val isRestrictedUrl = restrictedForLogURLs.contains(host + path)
|
||||
val isRestrictedHost = restrictedForLogHosts.any { host.contains(it) }
|
||||
|
||||
if (isRestrictedUrl || isRestrictedHost) {
|
||||
logResponseWithEmptyMessage(response, startNs)
|
||||
} else {
|
||||
logResponseMessage(response, startNs)
|
||||
|
|
@ -222,5 +227,8 @@ class NetworkLogsSaveInterceptor(
|
|||
val restrictedForLogURLs = listOf(
|
||||
"api.stakek.it/v1/yields/enabled",
|
||||
)
|
||||
val restrictedForLogHosts = listOf(
|
||||
"us.paera.com",
|
||||
)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue