This came up while investigating redis issues for @toan with mediawiki
We may also want to turn on dev focused settings more easily?
Hints:
- https://www.mediawiki.org/wiki/Manual:How_to_debug#Logging
- https://www.mediawiki.org/wiki/Manual:Structured_logging
Adam also recommended maybe this
if ( !$wwIsPhpUnit && !$wwIsLocalisationRebuild ) { $wgMWLoggerDefaultSpi = [ 'class' => \WBStack\Logging\CustomSpi::class, 'args' => [[ 'ignoreLevels' => [], 'ignoreAllInGroup' => [], 'logAllInGroup' => [], 'logAllInGroupExceptDebug' => [], ]], ]; }
Which could be maybe hidden by some env variable maybe or just the localhost check that happens a bit higher up in https://github.com/wbstack/mediawiki/blob/main/wbstack/src/Settings/LocalSettings.php#L25