From 5e5e3b9965830762ba110d9b940fc18d351fdec2 Mon Sep 17 00:00:00 2001 From: Mygod Date: Sat, 8 Aug 2020 02:57:52 +0800 Subject: [PATCH] Also print blocked client in log --- .../main/java/be/mygod/vpnhotspot/manage/TetherManager.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/manage/TetherManager.kt b/mobile/src/main/java/be/mygod/vpnhotspot/manage/TetherManager.kt index c93aa390..2e10aa1c 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/manage/TetherManager.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/manage/TetherManager.kt @@ -171,8 +171,9 @@ sealed class TetherManager(protected val parent: TetheringFragment) : Manager(), data.notifyChange() } override fun onBlockedClientConnecting(client: MacAddress, blockedReason: Int) { - SmartSnackbar.make(parent.getString(R.string.tethering_manage_wifi_client_blocked, client, - WifiApManager.clientBlockLookup(blockedReason, true))).apply { + val reason = WifiApManager.clientBlockLookup(blockedReason, true) + Timber.i("$client blocked from connecting: $reason ($blockedReason)") + SmartSnackbar.make(parent.getString(R.string.tethering_manage_wifi_client_blocked, client, reason)).apply { action(R.string.tethering_manage_wifi_copy_mac) { app.clipboard.setPrimaryClip(ClipData.newPlainText(null, client.toString())) }