summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2007-10-05 14:23:00 +0000
committerUrban Müller2007-10-05 14:23:00 +0000
commit71549c7f301282c9a04f2ed95a679d6c213335e7 (patch)
tree830454e9714256bf30ae22362536b57f12f147a9
parent76b4315dd3dcbceba9e177f7a9763a9413877f47 (diff)
downloaditools-71549c7f301282c9a04f2ed95a679d6c213335e7.tar.gz
itools-71549c7f301282c9a04f2ed95a679d6c213335e7.tar.bz2
itools-71549c7f301282c9a04f2ed95a679d6c213335e7.zip
add hostname to mailed errs
-rw-r--r--it.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it.class b/it.class
index 37741c2..6517fcc 100644
--- a/it.class
+++ b/it.class
@@ -185,6 +185,7 @@ function error($p = array(), $body = "", $to = "")
if ($sendmail) # we're mailing: send maximum info
{
+ $p['to'] .= " (on " . getenv('HOSTNAME') . ")";
$body .= $p['locals'] ? "Locals: " . print_r($p['locals'], true) . "\n\n" : "";
$body .= $_GET ? "\$_GET: " . print_r($_GET, true) . "\n\n" : "";
$body .= $_POST ? "\$_POST: " . print_r($_POST, true) . "\n\n" : "";