Skip to content

Commit 2ca823d

Browse files
committed
chore: log network requests to system.out for easier debugging
1 parent aa840c6 commit 2ca823d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/internal/module/CoordinatorConnectionModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ internal class CoordinatorConnectionModule(
7676
HeadersInterceptor(HeadersUtil()),
7777
)
7878
.addInterceptor(authInterceptor).addInterceptor(
79-
HttpLoggingInterceptor {
80-
streamLog(tag = "Video:Http") { it }
79+
HttpLoggingInterceptor { message->
80+
println(message)
8181
}.apply {
8282
level = loggingLevel.httpLoggingLevel.level
8383
},

stream-video-android-core/src/test/kotlin/io/getstream/video/android/core/base/IntegrationTestBase.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ import kotlin.coroutines.resume
6767
import kotlin.coroutines.suspendCoroutine
6868

6969
object IntegrationTestState {
70+
@Volatile
7071
var client: StreamVideo? = null
72+
@Volatile
7173
var call: Call? = null
7274
}
7375

@@ -99,7 +101,7 @@ open class IntegrationTestBase(val connectCoordinatorWS: Boolean = true) : TestB
99101
geo = GEO.GlobalEdgeNetwork,
100102
user = testData.users["thierry"]!!,
101103
token = authData?.token!!,
102-
loggingLevel = LoggingLevel(Priority.DEBUG, HttpLoggingLevel.BASIC),
104+
loggingLevel = LoggingLevel(Priority.DEBUG, HttpLoggingLevel.BODY),
103105
)
104106
// if (BuildConfig.CORE_TEST_LOCAL == "1") {
105107
// builder.videoDomain = "localhost"

0 commit comments

Comments
 (0)