This task is about PHP errors, for fatals, see T89169.
Although we get PHP warnings in the apache syslogs, we don't really get much information about it:
Dec 13 18:30:43 10.0.11.48 apache2[9987]: PHP Warning: preg_match() expects parameter 2 to be string, array given in /usr/local/apache/common-local/php-1.21wmf6/extensions/FundraiserLandingPage/FundraiserLandingPage.php on line 96
Dec 13 18:30:43 10.0.2.198 apache2[24462]: PHP Warning: preg_match() expects parameter 2 to be string, array given in /usr/local/apache/common-local/php-1.21wmf6/extensions/FundraiserLandingPage/FundraiserLandingPage.php on line 96
We could do with recording more information (to a different log file on fluorine), like we do for both the fatal log and the exception logs
Patches: https://gerrit.wikimedia.org/r/#/q/message:T45086
Checklist:
- Improve de-duplication and message counting by ensuring normalized_message does not include the exception_id. – Pending review: https://gerrit.wikimedia.org/r/374895
- Introduce $wgPropagateErrors to avoid duplicate logging under type:hhvm – Pending review: https://gerrit.wikimedia.org/r/338911
- Enable $wgPropagateErrors in Beta Cluster. https://gerrit.wikimedia.org/r/c/409171/
- Enable $wgPropagateErrors in production Cluster.
- Remove unused exception-json conversion filter from filter-mediawiki.conf in operations/puppet.git