]> kaliko git repositories - mpd-sima.git/blobdiff - launch
Add logger
[mpd-sima.git] / launch
diff --git a/launch b/launch
index 83ba3bad9208d6e0cbe6cc1f9c14b4b60d1d079f..d6544b7c8acd6f09ccecf866f4c5ff48dfcad89b 100755 (executable)
--- a/launch
+++ b/launch
@@ -2,13 +2,20 @@
 # -*- coding: utf-8 -*-
 
 def main():
+    from logging import getLogger
+    ##
     from sima import core
     from sima.plugins.crop import Crop
+    from sima.lib.logger import set_logger
+    ##
+    set_logger(log_level='debug')
+    logger = getLogger('sima')
     m = core.Sima()
     m.register_plugin(Crop)
     try:
         m.run()
     except KeyboardInterrupt:
+        logger.info('Caught KeyboardInterrupt, stopping')
         m.shutdown()