From 4006ab6580794c119d34b94f88def164433eb2ed Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 2 Aug 2018 18:25:18 +0200 Subject: adapt docs --- it.class | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'it.class') diff --git a/it.class b/it.class index e3b9a2f..436fe73 100644 --- a/it.class +++ b/it.class @@ -291,7 +291,7 @@ static function error($p = array()) else if ($_SERVER['REMOTE_ADDR']) # toscreen mode: web echo "
" . htmlspecialchars($p['title'] . "\n" . rtrim($body), ENT_COMPAT, "iso-8859-1") . ""; # works with iso-8859-1 or utf-8, UTF8SAFE else # toscreen mode: shell (outputs to stderr) - error_log(substr($p['title'], 0, 100000) . " in " . ($trace ? $trace : " {$p['file']}:{$p['line']}") . " Url: $url " . (EDC('verboseerrors') ? D($p['body']) : "")); + error_log(substr($p['title'], 0, 100000) . ($p['omitdebuginfo'] >= 2 ? "" : " in " . ($trace ? $trace : " {$p['file']}:{$p['line']}") . " Url: $url " . (EDC('verboseerrors') ? D($p['body']) : ""))); } if ($_SERVER['REMOTE_ADDR']) # additional entry in log/error_log @@ -599,7 +599,7 @@ static function filter_keys($array, $keys, $p = array()) * {-opts} array of opts => {value,true,false,null}: it::exec('ls {-opts}', ['-opts' => ["-l" => true]]); * @param $cmd Format string with {keywords} a la ET() * @param $values (zero, one or more arrays can be passed) - * @return output of command. shell errors not detectable, see error_log in /www/server/logs + * @return output of command. shell errors not detectable, see error_log in /www/server/log */ static function exec(/* $cmd, $values1 = array(), ... */) { @@ -642,7 +642,7 @@ static function system(/* $cmd, $values1 = array(), ... */) * {-opts} array of opts => {value,true,false,null}: it::exec('ls {-opts}', ['-opts' => ["-l" => true]]); * @param $cmd Format string with {keywords} replace a la ET() * @param $values (zero, one or more arrays can be passed) - * @return output of command. shell errors not detectable, see error_log in /www/server/logs + * @return output of command. shell errors not detectable, see error_log in /www/server/log */ static function shell_command(/* $cmd, $values1 = array(), ... */) { -- cgit v1.2.3