From 456a74db05d5662ff8c2623570809f782329f217 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 28 Mar 2020 23:19:02 -0600 Subject: global: hardcode tags so that minification doesn't ruin the log Signed-off-by: Jason A. Donenfeld --- tunnel/src/main/java/com/wireguard/android/backend/GoBackend.java | 2 +- tunnel/src/main/java/com/wireguard/android/backend/WgQuickBackend.java | 2 +- tunnel/src/main/java/com/wireguard/android/util/RootShell.java | 2 +- .../src/main/java/com/wireguard/android/util/SharedLibraryLoader.java | 2 +- tunnel/src/main/java/com/wireguard/android/util/ToolsInstaller.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tunnel') diff --git a/tunnel/src/main/java/com/wireguard/android/backend/GoBackend.java b/tunnel/src/main/java/com/wireguard/android/backend/GoBackend.java index 978b39aa..34008f45 100644 --- a/tunnel/src/main/java/com/wireguard/android/backend/GoBackend.java +++ b/tunnel/src/main/java/com/wireguard/android/backend/GoBackend.java @@ -35,7 +35,7 @@ import androidx.collection.ArraySet; @NonNullForAll public final class GoBackend implements Backend { - private static final String TAG = "WireGuard/" + GoBackend.class.getSimpleName(); + private static final String TAG = "WireGuard/GoBackend"; @Nullable private static AlwaysOnCallback alwaysOnCallback; private static GhettoCompletableFuture vpnService = new GhettoCompletableFuture<>(); private final Context context; diff --git a/tunnel/src/main/java/com/wireguard/android/backend/WgQuickBackend.java b/tunnel/src/main/java/com/wireguard/android/backend/WgQuickBackend.java index 78d7d5b6..d4d1f152 100644 --- a/tunnel/src/main/java/com/wireguard/android/backend/WgQuickBackend.java +++ b/tunnel/src/main/java/com/wireguard/android/backend/WgQuickBackend.java @@ -41,7 +41,7 @@ import java9.util.stream.Stream; @NonNullForAll public final class WgQuickBackend implements Backend { - private static final String TAG = "WireGuard/" + WgQuickBackend.class.getSimpleName(); + private static final String TAG = "WireGuard/WgQuickBackend"; private final File localTemporaryDir; private final RootShell rootShell; private final Map runningConfigs = new HashMap<>(); diff --git a/tunnel/src/main/java/com/wireguard/android/util/RootShell.java b/tunnel/src/main/java/com/wireguard/android/util/RootShell.java index 160ba12f..9c175552 100644 --- a/tunnel/src/main/java/com/wireguard/android/util/RootShell.java +++ b/tunnel/src/main/java/com/wireguard/android/util/RootShell.java @@ -29,7 +29,7 @@ import androidx.annotation.Nullable; @NonNullForAll public class RootShell { private static final String SU = "su"; - private static final String TAG = "WireGuard/" + RootShell.class.getSimpleName(); + private static final String TAG = "WireGuard/RootShell"; private final File localBinaryDir; private final File localTemporaryDir; diff --git a/tunnel/src/main/java/com/wireguard/android/util/SharedLibraryLoader.java b/tunnel/src/main/java/com/wireguard/android/util/SharedLibraryLoader.java index 1bb3659f..6b2c6142 100644 --- a/tunnel/src/main/java/com/wireguard/android/util/SharedLibraryLoader.java +++ b/tunnel/src/main/java/com/wireguard/android/util/SharedLibraryLoader.java @@ -27,7 +27,7 @@ import androidx.annotation.RestrictTo.Scope; @NonNullForAll @RestrictTo(Scope.LIBRARY_GROUP) public final class SharedLibraryLoader { - private static final String TAG = "WireGuard/" + SharedLibraryLoader.class.getSimpleName(); + private static final String TAG = "WireGuard/SharedLibraryLoader"; private SharedLibraryLoader() { } diff --git a/tunnel/src/main/java/com/wireguard/android/util/ToolsInstaller.java b/tunnel/src/main/java/com/wireguard/android/util/ToolsInstaller.java index 86792cb7..81e9ebeb 100644 --- a/tunnel/src/main/java/com/wireguard/android/util/ToolsInstaller.java +++ b/tunnel/src/main/java/com/wireguard/android/util/ToolsInstaller.java @@ -39,7 +39,7 @@ public final class ToolsInstaller { new File("/system/bin"), }; @Nullable private static final File INSTALL_DIR = getInstallDir(); - private static final String TAG = "WireGuard/" + ToolsInstaller.class.getSimpleName(); + private static final String TAG = "WireGuard/ToolsInstaller"; private final Context context; private final File localBinaryDir; -- cgit v1.2.3