diff options
author | kali <kali@leap.se> | 2013-01-16 00:58:22 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2013-01-16 00:58:22 +0900 |
commit | bf39c45eddc62733fdb72b4f46cdb81ec649cb30 (patch) | |
tree | 3a0a31077cb6cb1e4ec1bbcfc2cd08e6b08adf4b /src/leap/baseapp/log.py | |
parent | 8139b39dedc3dc99d310d082f6edb10d2303a1ce (diff) |
handle loss of tun iface
trigger only one dialog and disconnect.
additional cleanup of log handling.
Diffstat (limited to 'src/leap/baseapp/log.py')
-rw-r--r-- | src/leap/baseapp/log.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/baseapp/log.py b/src/leap/baseapp/log.py index 95cfc918..e6a767fb 100644 --- a/src/leap/baseapp/log.py +++ b/src/leap/baseapp/log.py @@ -11,6 +11,7 @@ class LogPaneMixin(object): a simple log pane that writes new lines as they come """ + EXCLUDES = ('MANAGEMENT',) def createLogBrowser(self): """ @@ -60,6 +61,7 @@ class LogPaneMixin(object): simple slot: writes new line to logger Pane. """ msg = line[:-1] - if self.debugmode: + if self.debugmode and all(map(lambda w: w not in msg, + LogPaneMixin.EXCLUDES)): self.logbrowser.append(msg) - vpnlogger.info(msg) + vpnlogger.info(msg) |