diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-12-28 13:56:27 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-12-28 13:56:27 +0100 |
commit | 59d82987c594cf6cbf9e1fb9cd0be222fec81b16 (patch) | |
tree | 94010ea4fefb31e85da83d17dc90fe57c8885d18 /src/de/blinkt/openvpn/core/VpnStatus.java | |
parent | a7b8099e3e4ab8e255f823daee2075f0ed1c5eb2 (diff) |
tune log message
--HG--
extra : rebase_source : 76c78de6dbb9dfe27d247c6f45c1f4e9f4199bbd
Diffstat (limited to 'src/de/blinkt/openvpn/core/VpnStatus.java')
-rw-r--r-- | src/de/blinkt/openvpn/core/VpnStatus.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/core/VpnStatus.java b/src/de/blinkt/openvpn/core/VpnStatus.java index f1445f77..20b56172 100644 --- a/src/de/blinkt/openvpn/core/VpnStatus.java +++ b/src/de/blinkt/openvpn/core/VpnStatus.java @@ -81,7 +81,8 @@ public class VpnStatus { INFO(2), ERROR(-2), WARNING(1), - VERBOSE(3); + VERBOSE(3), + DEBUG(4); protected int mValue; LogLevel(int value) { @@ -97,6 +98,7 @@ public class VpnStatus { case 1: return INFO; case 2: return ERROR; case 3: return WARNING; + case 4: return DEBUG; default: return null; } } @@ -450,6 +452,7 @@ public class VpnStatus { for (StateListener sl : stateListener) { sl.updateState(state,msg,resid,level); } + newLogItem(new LogItem((LogLevel.DEBUG), String.format("New OpenVPN Status (%s->%s): %s",state,level.toString(),msg))); } public static void logInfo(String message) { |