diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-09-18 14:37:34 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-09-18 14:37:34 +0200 |
commit | 2fdfb2b7f3d28667de2a20f68eb3ec46aebfec12 (patch) | |
tree | 479c1f92fd279357e95e914e7067616b7e4ec66e /src/de/blinkt/openvpn/VpnProfile.java | |
parent | e86a9a41d289e107bf235baaac766c109f23a5c6 (diff) |
Refactor logging messages
Diffstat (limited to 'src/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r-- | src/de/blinkt/openvpn/VpnProfile.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java index ed19cd17..cb186316 100644 --- a/src/de/blinkt/openvpn/VpnProfile.java +++ b/src/de/blinkt/openvpn/VpnProfile.java @@ -564,7 +564,7 @@ public class VpnProfile implements Serializable { cachain = KeyChain.getCertificateChain(context, mAlias); if (cachain.length <= 1 && !nonNull(mCaFilename)) { - VpnStatus.logMessage(0, "", context.getString(R.string.keychain_nocacert)); + VpnStatus.logMessage(VpnStatus.LogLevel.ERROR, "", context.getString(R.string.keychain_nocacert)); } else { StringWriter ksStringWriter = new StringWriter(); @@ -628,7 +628,7 @@ public class VpnProfile implements Serializable { } catch (IOException e) { e.printStackTrace(); } catch (KeyChainException e) { - VpnStatus.logMessage(0, "", context.getString(R.string.keychain_access)); + VpnStatus.logError(R.string.keychain_access); if (Build.VERSION.SDK_INT == Build.VERSION_CODES.JELLY_BEAN) { if (!mAlias.matches("^[a-zA-Z0-9]$")) { VpnStatus.logError(R.string.jelly_keystore_alphanumeric_bug); |