From f95524786723ef4e29e90dba9892f732997be5c0 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 9 Jan 2018 09:18:03 -0600 Subject: WgQuickBackend: Log when tunnels can't be enumerated Signed-off-by: Samuel Holland --- app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src/main/java/com/wireguard') diff --git a/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java b/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java index b067db0b..0c6ce595 100644 --- a/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java +++ b/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java @@ -54,7 +54,8 @@ public final class WgQuickBackend implements Backend { toolsInstaller.ensureToolsAvailable(); if (rootShell.run(output, "wg show interfaces") != 0 || output.isEmpty()) return Collections.emptySet(); - } catch (final Exception ignored) { + } catch (final Exception e) { + Log.w(TAG, "Unable to enumerate running tunnels", e); return Collections.emptySet(); } // wg puts all interface names on the same line. Split them into separate elements. -- cgit v1.2.3