Add logger and better exception handling

This commit is contained in:
zewelor
2017-11-24 08:53:21 +01:00
parent d463345707
commit 09d1332b92
3 changed files with 49 additions and 12 deletions
+6
View File
@@ -0,0 +1,6 @@
import logging
import sys
_LOGGER = logging.getLogger('bt-mqtt-gw')
_LOGGER.addHandler(logging.StreamHandler(sys.stdout))