summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/core/OpenVPNThread.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-12-15 16:42:28 +0100
committerArne Schwabe <arne@rfc2549.org>2013-12-15 16:42:28 +0100
commit1e710399e226b4b18ea29e20c32c1aa7d5293dd4 (patch)
tree09788ce775856dfff2315efa4990fc2788b5af9f /src/de/blinkt/openvpn/core/OpenVPNThread.java
parenta51eda3d7de8387316814cadddc1f5fde3c8b3aa (diff)
Always log Exception to log
Diffstat (limited to 'src/de/blinkt/openvpn/core/OpenVPNThread.java')
-rw-r--r--src/de/blinkt/openvpn/core/OpenVPNThread.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/de/blinkt/openvpn/core/OpenVPNThread.java b/src/de/blinkt/openvpn/core/OpenVPNThread.java
index f814ff29..dacd41c9 100644
--- a/src/de/blinkt/openvpn/core/OpenVPNThread.java
+++ b/src/de/blinkt/openvpn/core/OpenVPNThread.java
@@ -48,7 +48,7 @@ public class OpenVPNThread implements Runnable {
startOpenVPNThreadArgs(mArgv, mProcessEnv);
Log.i(TAG, "Giving up");
} catch (Exception e) {
- e.printStackTrace();
+ VpnStatus.logException("Starting OpenVPN Thread" ,e);
Log.e(TAG, "OpenVPNThread Got " + e.toString());
} finally {
int exitvalue = 0;
@@ -149,8 +149,7 @@ public class OpenVPNThread implements Runnable {
} catch (IOException e) {
- VpnStatus.logError("Error reading from output of OpenVPN process" + e.getLocalizedMessage());
- e.printStackTrace();
+ VpnStatus.logException("Error reading from output of OpenVPN process" , e);
stopProcess();
}