Email error message using crashmail with supervisor-Collection of common programming errors
Absolutely, but you will have to fork crashmail yourself.
The message is around line 112. You can use the XML-RPC API to call tailProcessStderrLog
.
So what you’d basically do is add something like:
rpc = childutils.getRPCInterface( os.environ )
log = rpc.supervisor.tailProcessStderrLog( %(groupname):'%(processname)' % pheaders, 16000 )
msg += '\nLog:\n%s' % log['bytes']
The above is a simple proof-of-concept, untested and very probably contains a mistake. Let me know how it goes.