File tree 2 files changed +4
-1
lines changed
main/kotlin/com/statsig/sdk
test/java/com/statsig/sdk
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,10 @@ internal class StatsigNetwork(
256
256
if (response.isSuccessful) {
257
257
return @coroutineScope
258
258
} else if (! retryCodes.contains(response.code) || currRetry == 0 ) {
259
+ options.customLogger.warning(" [Statsig]: Network request failed with status code: ${response.code} " )
259
260
return @coroutineScope
261
+ } else if (retryCodes.contains(response.code) && currRetry > 0 ) {
262
+ options.customLogger.info(" [Statsig]: Retrying network request. Retry count: $currRetry . Response code: ${response.code} " )
260
263
}
261
264
}
262
265
} catch (e: Exception ) {
Original file line number Diff line number Diff line change @@ -25,6 +25,6 @@ class CustomLoggerTest {
25
25
assert (warningMessage.size == 1 )
26
26
server.shutdown()
27
27
server.checkGate(StatsigUser (" user_id" ), " test_gate" )
28
- assert (warningMessage.size == 2 )
28
+ assert (warningMessage.size == 3 )
29
29
}
30
30
}
You can’t perform that action at this time.
0 commit comments