summaryrefslogtreecommitdiff
path: root/src/leap/eip
diff options
context:
space:
mode:
authorantialias <antialias@leap.se>2012-11-16 17:38:46 -0800
committerkali <kali@leap.se>2013-01-15 22:42:17 +0900
commit348eb0852d6f1b8b2b72baba8a236bc30a6f2a4e (patch)
tree9ca25989e77ff353dd784ddb1e2f1c3e30534785 /src/leap/eip
parentf90f9df1d09e12ba64e9401530684d5a36220ad3 (diff)
reads and searches for strings from openvpn logs via the management interface.
Diffstat (limited to 'src/leap/eip')
-rw-r--r--src/leap/eip/openvpnconnection.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/eip/openvpnconnection.py b/src/leap/eip/openvpnconnection.py
index b36b0b16..233b9da3 100644
--- a/src/leap/eip/openvpnconnection.py
+++ b/src/leap/eip/openvpnconnection.py
@@ -400,3 +400,7 @@ to be triggered for each one of them.
if process.name == "openvpn":
return process
return None
+
+ def get_log(self, lines=1):
+ log = self._send_command("log %s" % lines)
+ return log