projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e5cd129
)
only log errors to apache
author
Alan
<alan@roojs.com>
Wed, 6 Sep 2023 06:18:16 +0000
(14:18 +0800)
committer
Alan
<alan@roojs.com>
Wed, 6 Sep 2023 06:18:16 +0000
(14:18 +0800)
Pman.php
patch
|
blob
|
history
diff --git
a/Pman.php
b/Pman.php
index
6cbb587
..
c1a3824
100644
(file)
--- 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-'
) {
|| !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 );
$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();
}
$au = $this->getAuthUser();