Skip to content

Commit 2e2f132

Browse files
fix log compression (#291)
1 parent 2472635 commit 2e2f132

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/statsig/androidsdk/StatsigNetwork.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ internal class StatsigNetworkImpl(
478478
Marker(attempt = retries),
479479
contextType,
480480
)
481-
val outputStream = if (shouldCompressLogEvent(urlConfig, url.path)) {
481+
val outputStream = if (shouldCompressLogEvent(urlConfig, url.toString())) {
482482
connection.setRequestProperty("Content-Encoding", "gzip") // Tell the server it's gzipped
483483
GZIPOutputStream(connection.outputStream)
484484
} else {
@@ -534,7 +534,6 @@ internal class StatsigNetworkImpl(
534534
}
535535
}
536536
} catch (e: Exception) {
537-
println(e)
538537
errorMessage = e.message
539538
throw e
540539
} finally {

0 commit comments

Comments
 (0)