summaryrefslogtreecommitdiff
path: root/src/leap/baseapp/leap_app.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/leap_app.py
parent6ef92e257ce1e605194cb26ff6cb804c7d2c3418 (diff)
app wide logging handler
Diffstat (limited to 'src/leap/baseapp/leap_app.py')
-rw-r--r--src/leap/baseapp/leap_app.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/leap/baseapp/leap_app.py b/src/leap/baseapp/leap_app.py
index def95da1..85644360 100644
--- a/src/leap/baseapp/leap_app.py
+++ b/src/leap/baseapp/leap_app.py
@@ -1,7 +1,11 @@
+import logging
+
from PyQt4 import QtGui
from leap.gui import mainwindow_rc
+logger = logging.getLogger(name=__name__)
+
class MainWindow(object):
"""
@@ -79,5 +83,7 @@ technolust</i>")
# TODO:make sure to shutdown all child process / threads
# in conductor
# XXX send signal instead?
+ logger.info('Shutting down')
self.conductor.cleanup()
+ logger.info('Exiting')
QtGui.qApp.quit()