wiki.techinc.nl/includes/debug
Seb35 069c81bfe5 Empty Monolog loggers are now real blackholes and add tests
Before this commit empty Monolog loggers (or at least when no handlers are
defined) were assigned (by Monolog 1.x) the stream handler php://stderr with
the level 'debug'. This whole behaviour from MediaWiki config to Monolog is
unexpected; in the outcomes, depending on the PHP execution program, stderr
is or is not saved somewhere by default, leading to very different behaviours.

The behaviour will change in Monolog 2.x and nothing will happen is such cases
(similar hence to a NullHandler). With this commit the behaviour is uniform
accross all environments and (future) Monolog version: nothing is logged if
no handler is defined.

Precisely, a NullHandler for a given logger/MediaWiki logging channel is
defined here either when there is no key 'handlers', either when this key is
an empty array or 'false'.

Bug: T196906
Change-Id: I124391cc7b4485081980c5015431404234f40073
2020-09-20 18:11:51 +00:00
..
logger Empty Monolog loggers are now real blackholes and add tests 2020-09-20 18:11:51 +00:00
DeprecatablePropertyArray.php Introduce DeprecatablePropertyArray and use it for PageUpdater 2020-06-09 07:09:00 -07:00
DeprecationHelper.php
MWDebug.php Don't output HTMLDebugLog div element when not needed 2020-07-29 11:34:04 +00:00