Skip to content

Commit 726d972

Browse files
committed
Use qualified names for logging with shared TAG impl
1 parent 6294eca commit 726d972

File tree

7 files changed

+7
-8
lines changed

7 files changed

+7
-8
lines changed

app/src/main/java/tech/httptoolkit/android/HttpToolkitApplication.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ import kotlin.coroutines.suspendCoroutine
2525

2626
class HttpToolkitApplication : Application() {
2727

28-
private val TAG = HttpToolkitApplication::class.simpleName
29-
3028
private var analytics: GoogleAnalytics? = null
3129
private var ga: Tracker? = null
3230

app/src/main/java/tech/httptoolkit/android/MainActivity.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ private const val DEACTIVATE_INTENT = "tech.httptoolkit.android.DEACTIVATE"
4343

4444
class MainActivity : AppCompatActivity(), CoroutineScope by MainScope() {
4545

46-
private val TAG = MainActivity::class.simpleName
4746
private lateinit var app: HttpToolkitApplication
4847

4948
private var localBroadcastManager: LocalBroadcastManager? = null

app/src/main/java/tech/httptoolkit/android/ProxySetup.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import java.security.cert.CertificateFactory
2626
import java.security.cert.X509Certificate
2727
import java.util.concurrent.TimeUnit
2828

29-
private val TAG = "ProxySetup"
29+
private const val TAG = "ProxySetup"
3030

3131
// Takes an android.httptoolkit.tech/connect URI, extracts & parses the connection config
3232
// within, into a format ready for testing and then usage.

app/src/main/java/tech/httptoolkit/android/ProxyVpnRunnable.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ class ProxyVpnRunnable(
2424
redirectPorts: IntArray
2525
) : Runnable {
2626

27-
private val TAG = ProxyVpnRunnable::class.simpleName
28-
2927
@Volatile private var running = false
3028

3129
// Packets from device apps downstream, heading upstream via this VPN

app/src/main/java/tech/httptoolkit/android/ProxyVpnService.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ fun isVpnActive(): Boolean {
3939

4040
class ProxyVpnService : VpnService(), IProtectSocket {
4141

42-
private val TAG = ProxyVpnService::class.simpleName
4342
private var app: HttpToolkitApplication? = null
4443

4544
private var localBroadcastManager: LocalBroadcastManager? = null

app/src/main/java/tech/httptoolkit/android/ScanActivity.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const val SCANNED_URL_EXTRA = "tech.httptoolkit.android.SCANNED_URL"
1717

1818
class ScanActivity : AppCompatActivity(), ZXingScannerView.ResultHandler {
1919

20-
private val TAG = ScanActivity::class.simpleName
2120
private var app: HttpToolkitApplication? = null
2221

2322
private var scannerView: ZXingScannerView? = null
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package tech.httptoolkit.android
2+
3+
val Any.TAG: String
4+
get() {
5+
return javaClass.name
6+
}

0 commit comments

Comments
 (0)