Add debug logging for edits presumably prevented by other extensions

Bug: T211680
Change-Id: I0c9ac09044122521f67ffaf38a92e42b20f3ea43
This commit is contained in:
Daimona Eaytoy 2021-02-04 02:20:25 +01:00
parent f49719c0f4
commit 634742324e

View file

@ -169,6 +169,14 @@ class AbuseFilterHooks {
) {
$startTime = microtime( true );
if ( !$status->isOK() ) {
// Investigate what happens if we skip filtering here (T211680)
LoggerFactory::getInstance( 'AbuseFilter' )->info(
'Status is already not OK',
[ 'status' => (string)$status ]
);
}
$filterResult = self::filterEdit( $context, $user, $content, $summary, $slot );
if ( !$filterResult->isOK() ) {