From 1e710399e226b4b18ea29e20c32c1aa7d5293dd4 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Sun, 15 Dec 2013 16:42:28 +0100 Subject: Always log Exception to log --- src/de/blinkt/openvpn/core/ProfileManager.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/de/blinkt/openvpn/core/ProfileManager.java') diff --git a/src/de/blinkt/openvpn/core/ProfileManager.java b/src/de/blinkt/openvpn/core/ProfileManager.java index 27b64b90..a1dd8da5 100644 --- a/src/de/blinkt/openvpn/core/ProfileManager.java +++ b/src/de/blinkt/openvpn/core/ProfileManager.java @@ -145,13 +145,11 @@ public class ProfileManager { vpnfile.close(); } catch (FileNotFoundException e) { - e.printStackTrace(); + VpnStatus.logException("saving VPN profile", e); throw new RuntimeException(e); } catch (IOException e) { - - e.printStackTrace(); + VpnStatus.logException("saving VPN profile", e); throw new RuntimeException(e); - } } @@ -186,7 +184,7 @@ public class ProfileManager { exp=e; } if(exp!=null) { - exp.printStackTrace(); + VpnStatus.logException("Loading VPN List",exp); } } } -- cgit v1.2.3