diff options
| author | Albin <albin@mullvad.net> | 2024-06-25 16:46:31 +0200 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2024-06-26 12:59:29 +0200 |
| commit | cee8176be4cae9cc605cca5ffae85d243adc4f3a (patch) | |
| tree | d989a1aa16b26b1245c65f849b6f1f03e14faba0 /android/tile/src | |
| parent | 0316f672c58f5558ce9880af698098c3718591b6 (diff) | |
| download | mullvadvpn-cee8176be4cae9cc605cca5ffae85d243adc4f3a.tar.xz mullvadvpn-cee8176be4cae9cc605cca5ffae85d243adc4f3a.zip | |
Migrate log calls to kermit
Diffstat (limited to 'android/tile/src')
| -rw-r--r-- | android/tile/src/main/kotlin/net/mullvad/mullvadvpn/tile/MullvadTileService.kt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/android/tile/src/main/kotlin/net/mullvad/mullvadvpn/tile/MullvadTileService.kt b/android/tile/src/main/kotlin/net/mullvad/mullvadvpn/tile/MullvadTileService.kt index f796690f18..5998d75920 100644 --- a/android/tile/src/main/kotlin/net/mullvad/mullvadvpn/tile/MullvadTileService.kt +++ b/android/tile/src/main/kotlin/net/mullvad/mullvadvpn/tile/MullvadTileService.kt @@ -8,7 +8,7 @@ import android.net.VpnService import android.os.Build import android.service.quicksettings.Tile import android.service.quicksettings.TileService -import android.util.Log +import co.touchlab.kermit.Logger import kotlinx.coroutines.FlowPreview import kotlinx.coroutines.Job import kotlinx.coroutines.MainScope @@ -23,7 +23,6 @@ import kotlinx.coroutines.withTimeoutOrNull import net.mullvad.mullvadvpn.lib.common.constant.KEY_CONNECT_ACTION import net.mullvad.mullvadvpn.lib.common.constant.KEY_DISCONNECT_ACTION import net.mullvad.mullvadvpn.lib.common.constant.MAIN_ACTIVITY_CLASS -import net.mullvad.mullvadvpn.lib.common.constant.TAG import net.mullvad.mullvadvpn.lib.common.constant.VPN_SERVICE_CLASS import net.mullvad.mullvadvpn.lib.common.util.SdkUtils import net.mullvad.mullvadvpn.lib.common.util.SdkUtils.setSubtitleIfSupported @@ -73,7 +72,7 @@ class MullvadTileService : TileService() { if (isUnlockStatusPropagated) { toggleTunnel() } else { - Log.e("mullvad", "Unable to toggle tunnel state") + Logger.e("Unable to toggle tunnel state") } } } @@ -92,7 +91,7 @@ class MullvadTileService : TileService() { val isSetup = VpnService.prepare(applicationContext) == null // TODO This logic should be more advanced, we should ensure user has an account setup etc. if (!isSetup) { - Log.d(TAG, "TileService: VPN service not setup, starting main activity") + Logger.d("TileService: VPN service not setup, starting main activity") val intent = Intent().apply { @@ -106,7 +105,7 @@ class MullvadTileService : TileService() { startActivityAndCollapseCompat(intent) return } else { - Log.d(TAG, "TileService: VPN service is setup") + Logger.d("TileService: VPN service is setup") } val intent = Intent().apply { |
