print stack trace when Python script fails to run in core-daemon context

(Boeing r1789)
This commit is contained in:
ahrenholz 2013-10-28 15:25:44 +00:00
parent 102dd2aa3b
commit ed401451d2

View file

@ -893,7 +893,8 @@ class CoreRequestHandler(SocketServer.BaseRequestHandler):
msg = coreapi.CoreRegMessage.pack(0, tlvdata)
replies.append(msg)
except Exception, e:
self.warn("error executing '%s': %s" % (ex, e))
self.warn("error executing '%s': %s" % \
(ex, traceback.format_exc()))
return replies
gui = msg.gettlv(coreapi.CORE_TLV_REG_GUI)