Commit 129e0b8b by Michael DeHaan

Log tracebacks to syslog when using fireball mode.

parent b6f7a22d
......@@ -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():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment