{"id":2125,"date":"2022-08-30T15:22:15","date_gmt":"2022-08-30T15:22:15","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/02\/email-error-message-using-crashmail-with-supervisor-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:22:15","modified_gmt":"2022-08-30T15:22:15","slug":"email-error-message-using-crashmail-with-supervisor-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/email-error-message-using-crashmail-with-supervisor-collection-of-common-programming-errors\/","title":{"rendered":"Email error message using crashmail with supervisor-Collection of common programming errors"},"content":{"rendered":"<p>Absolutely, but you will have to fork crashmail yourself.<\/p>\n<p>The message is around line 112. You can use the XML-RPC API to call <code>tailProcessStderrLog<\/code>.<\/p>\n<p>So what you&#8217;d basically do is add something like:<\/p>\n<pre><code>rpc = childutils.getRPCInterface( os.environ )\nlog = rpc.supervisor.tailProcessStderrLog( %(groupname):'%(processname)' % pheaders, 16000 )\nmsg += '\\nLog:\\n%s' % log['bytes']\n<\/code><\/pre>\n<p>The above is a simple proof-of-concept, untested and very probably contains a mistake. Let me know how it goes.<\/p>\n<p id=\"rop\"><small>Originally posted 2014-01-02 12:07:20. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>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&#8217;d basically do is add something like: rpc = childutils.getRPCInterface( os.environ ) log = rpc.supervisor.tailProcessStderrLog( %(groupname):&#8217;%(processname)&#8217; % pheaders, 16000 ) msg += &#8216;\\nLog:\\n%s&#8217; % log[&#8216;bytes&#8217;] The above is a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2125","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2125"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2125\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}