summaryrefslogtreecommitdiff
path: root/src/leap/app.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-07 04:14:06 +0900
committerkali <kali@leap.se>2012-08-07 04:14:06 +0900
commit36b0dfacca794e9cb899b5dde2dae3b8bbc6cc43 (patch)
tree28b3433e86b018ac80de264e989b47ca43af1216 /src/leap/app.py
parenta6416bd5e4dc57390ba0748878d229098aeca42e (diff)
build default provider openvpn config.
preparation for completion of #356, #355, #354, #182 if no default openvpn config is present, we build one with a preset template and the remote_ip of the eip service as the only input. right now we're taking it from the eip.cfg file.
Diffstat (limited to 'src/leap/app.py')
-rw-r--r--src/leap/app.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/app.py b/src/leap/app.py
index 186eb048..db48701b 100644
--- a/src/leap/app.py
+++ b/src/leap/app.py
@@ -6,6 +6,7 @@ from PyQt4.QtGui import (QApplication, QSystemTrayIcon, QMessageBox)
from leap.baseapp.mainwindow import LeapWindow
+logging.basicConfig()
logger = logging.getLogger(name=__name__)
@@ -21,7 +22,8 @@ def main():
#XXX get debug level and set logger accordingly
if debug:
- logger.debug('args: ', opts)
+ logger.setLevel('DEBUG')
+ logger.debug('args: %s' % opts)
app = QApplication(sys.argv)