From ed401451d2be43384d641d247aa19724ee9216d7 Mon Sep 17 00:00:00 2001 From: ahrenholz Date: Mon, 28 Oct 2013 15:25:44 +0000 Subject: [PATCH] print stack trace when Python script fails to run in core-daemon context (Boeing r1789) --- daemon/sbin/core-daemon | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/sbin/core-daemon b/daemon/sbin/core-daemon index bd50309f..c1bafaab 100755 --- a/daemon/sbin/core-daemon +++ b/daemon/sbin/core-daemon @@ -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)