summaryrefslogtreecommitdiff
path: root/src/leap/baseapp/eip.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-05 07:42:10 +0900
committerkali <kali@leap.se>2012-09-05 07:42:10 +0900
commita2804c3de1470db98d8c6aa8a01e2de1aa1718a1 (patch)
tree3743e172e4b7a1e0a2b0650d95950149f66e9ec3 /src/leap/baseapp/eip.py
parent6ef92e257ce1e605194cb26ff6cb804c7d2c3418 (diff)
app wide logging handler
Diffstat (limited to 'src/leap/baseapp/eip.py')
-rw-r--r--src/leap/baseapp/eip.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/leap/baseapp/eip.py b/src/leap/baseapp/eip.py
index 029ce0ba..e0da63a2 100644
--- a/src/leap/baseapp/eip.py
+++ b/src/leap/baseapp/eip.py
@@ -1,3 +1,4 @@
+import logging
import time
from PyQt4 import QtCore
@@ -7,6 +8,8 @@ from leap.baseapp import constants
from leap.eip import exceptions as eip_exceptions
from leap.eip.eipconnection import EIPConnection
+logger = logging.getLogger(name=__name__)
+
class EIPConductorApp(object):
"""
@@ -126,8 +129,10 @@ class EIPConductorApp(object):
if self.conductor.with_errors:
#XXX how to wait on pkexec???
#something better that this workaround, plz!!
- time.sleep(2)
- print('errors. disconnect.')
+ time.sleep(5)
+ #print('errors. disconnect.')
+ logger.debug('timeout')
+ logger.error('errors. disconnect')
self.start_or_stopVPN() # is stop
state = self.conductor.poll_connection_state()