From: Alan Date: Wed, 6 Sep 2023 06:18:16 +0000 (+0800) Subject: only log errors to apache X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=ab88c4db88b0f477ad2a218b1067322d75ded54d only log errors to apache --- diff --git a/Pman.php b/Pman.php index 6cbb587..c1a3824 100644 --- a/Pman.php +++ b/Pman.php @@ -1161,12 +1161,14 @@ class Pman extends HTML_FlexyFramework_Page || !empty($ff->database_is_readonly) || substr($act, 0, 7) === 'NOTICE-' ) { + if (substr($act, 0, 5) !== 'ERROR') { + return false; + } $str = $obj !== false ? "{$obj->tableName()}:{$obj->id} " : ''; $de = ini_set('display_errors', 0); trigger_error("{$act} {$str} {$remarks}" , E_USER_NOTICE); ini_set('display_errors', $de ); - - return false; + return false; } $au = $this->getAuthUser();