From d652d974d32ea87b29ae1d741bd36b6d91d5f210 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 4 Jul 2017 14:26:31 +0200 Subject: better docs --- it.class | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/it.class b/it.class index 9bb4935..05d3140 100644 --- a/it.class +++ b/it.class @@ -111,10 +111,11 @@ static function timerlog($label = '') /** - * Send verbose error report to browser or (if display_errors is off) by email to .diffnotice gods, file owner or SERVER_ADMIN + * If display_errors is on or stdout is a tty, shows error in page or on stdout respectively + * If display_errors is off, mails (with rate limiting) diagnostics to .diffnotice addresses or file owner or SERVER_ADMIN * @param $p either error title or assoc array of params, see below * @param $p['title'] error title, one line - * @param $p['body'] error body, multiline string or any data type (will be dumped) + * @param $p['body'] error body: multiline string or any data type (will be dumped) * @param $p['to'] comma separated recipient list * @param $p['id'] id of error. if given, first error is suppressed and second has to occur after 'graceperiod' within 'timewindow' * @param $p['graceperiod'] in seconds. see 'id' [60] -- cgit v1.2.3