diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-09 09:18:03 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-09 09:18:03 -0600 |
commit | a1d955ef6264498c6c27569660152dbda7f60392 (patch) | |
tree | fadc4d2b4ed34e17ef6123f2142abfeb298d329c /app/src/main | |
parent | ca077dd090b5b6ec587e48154dbdb17570d8bf57 (diff) |
WgQuickBackend: Log when tunnels can't be enumerated
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java | 3 |
1 files changed, 2 insertions, 1 deletions
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. |