summaryrefslogtreecommitdiff
path: root/src/leap/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/app.py')
-rw-r--r--src/leap/app.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/leap/app.py b/src/leap/app.py
index 5ce40ccb..d51ac46d 100644
--- a/src/leap/app.py
+++ b/src/leap/app.py
@@ -35,6 +35,9 @@ def main():
console.setFormatter(formatter)
logger.addHandler(console)
+ logger.info('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
+ logger.info('LEAP client version %s', VERSION)
+ logger.info('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
logfile = getattr(opts, 'log_file', False)
if logfile:
logger.debug('setting logfile to %s ', logfile)
@@ -43,10 +46,7 @@ def main():
fileh.setFormatter(formatter)
logger.addHandler(fileh)
- logger.debug('args: %s' % opts)
logger.info('Starting app')
- logger.info('Running client version %s', VERSION)
-
app = QApplication(sys.argv)
if not QSystemTrayIcon.isSystemTrayAvailable():
@@ -58,7 +58,8 @@ def main():
QApplication.setQuitOnLastWindowClosed(False)
window = LeapWindow(opts)
- window.show()
+ if debug:
+ window.show()
sys.exit(app.exec_())
if __name__ == "__main__":