From 129e0b8baf264f513264e173b51a3aeddb0f986a Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 1 Mar 2013 18:24:17 -0500 Subject: [PATCH] Log tracebacks to syslog when using fireball mode. --- library/fireball | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/fireball b/library/fireball index 93988d4eb74..651deff4a78 100644 --- a/library/fireball +++ b/library/fireball @@ -71,6 +71,7 @@ import syslog import signal import time import signal +import traceback syslog.openlog('ansible-%s' % os.path.basename(__file__)) PIDFILE = os.path.expanduser("~/.fireball.pid") @@ -244,7 +245,8 @@ def daemonize(module, password, port, minutes): serve(module, password, port, minutes) except Exception, e: - log("exception caught, exiting fireball mode: %s" % e) + tb = traceback.format_exc() + log("exception caught, exiting fireball mode: %s\n%s" % (e, tb)) sys.exit(0) def main():