summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2017-04-10 16:17:47 +0200
committerUrban Müller2017-04-10 16:17:47 +0200
commit358fd271ed287e4eb9c524a0097e17362713193e (patch)
treeecdc837c7e61d5a7985fa612e9b37676707c94f2 /it.class
parent8c786342fd30ac02f3cba9150d78a3864fefce48 (diff)
downloaditools-358fd271ed287e4eb9c524a0097e17362713193e.tar.gz
itools-358fd271ed287e4eb9c524a0097e17362713193e.tar.bz2
itools-358fd271ed287e4eb9c524a0097e17362713193e.zip
add pstree to error mails
Diffstat (limited to 'it.class')
-rw-r--r--it.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it.class b/it.class
index f229ba4..4384d2c 100644
--- a/it.class
+++ b/it.class
@@ -244,6 +244,7 @@ static function error($p = array())
$body .= $_GET ? "\$_GET: " . var_export($_GET, true) . "\n\n" : "";
$body .= $_POST ? "\$_POST: " . var_export($_POST, true) . "\n\n" : "";
$body .= $_COOKIE ? "\$_COOKIE: " . var_export($_COOKIE, true) . "\n\n" : "";
+ $body .= $_SERVER['REMOTE_ADDR'] ? "" : "Pstree:\n" . it::exec("pstree -a -l -p | grep -B 3 '[,]" . getmypid() . "\b'") . "\n";
$body .= $_SERVER ? "\$_SERVER: " . var_export($_SERVER, true) . "\n\n" : "";
$body .= $_FILES ? "\$_FILES: " . var_export($_FILES, true) . "\n\n" : "";
$body .= $stackframes ? "Stack: " . print_r($stackframes, true) . "\n\n" : "";