Commits

Anonymous committed d05ed37

log stack trac on thermo read

Comments (0)

Files changed (1)

domain/__init__.py

 from datetime import datetime, timedelta
 from pycopia.basicconfig import ConfigHolder
 import logging
+import traceback
 from data import betagrid
 from domain.ex import UnknownTriggerForDevice
 import triggers
                     logging.debug("Device %s: %s" % (id, readings[id]))
                 except Exception as e:
                     logging.warning("Error reading %s: %s" % (device.id, e))
+                    logging.warning("Stack %s" % (traceback.print_exc(),))
 
             for trigger in device.triggers:
                 update = device.check_trigger(trigger, reading=readings.get(id, None))