Skip to content

Commit

Permalink
fix android uniffi logging (#2030)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneschepke authored Jan 29, 2025
1 parent 9649ae8 commit 6f45e1f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.PowerManager
import android.system.Os
import androidx.core.app.ServiceCompat
import androidx.lifecycle.LifecycleService
import androidx.lifecycle.lifecycleScope
Expand Down Expand Up @@ -105,8 +104,7 @@ class NymBackend private constructor(val context: Context) : Backend, TunnelStat
override suspend fun init(environment: Tunnel.Environment, credentialMode: Boolean?) {
return withContext(ioDispatcher) {
runCatching {
Os.setenv("RUST_LOG", LOG_LEVEL, true)
initLogger(null)
initLogger(null, LOG_LEVEL)
initEnvironment(environment)
nym_vpn_lib.configureLib(storagePath, credentialMode)
initialized.set(true)
Expand Down

0 comments on commit 6f45e1f

Please sign in to comment.