Pass function name to database functions

Useful for logging

Change-Id: Ib6b3ad814dd24d31aab37be486ff32d3f57c7905
This commit is contained in:
Umherirrender 2020-06-07 01:54:41 +02:00
parent 1f72bc838c
commit 6e2d7931a5
2 changed files with 5 additions and 3 deletions

View file

@ -838,7 +838,7 @@ class AbuseFilterHooks {
*/
public static function onUnitTestsAfterDatabaseSetup( IMaintainableDatabase $db, $prefix ) {
$externalPrefix = AbuseFilterConsequencesTest::DB_EXTERNAL_PREFIX;
if ( $db->tableExists( $externalPrefix . AbuseFilterConsequencesTest::$externalTables[0] ) ) {
if ( $db->tableExists( $externalPrefix . AbuseFilterConsequencesTest::$externalTables[0], __METHOD__ ) ) {
// Check a random table to avoid unnecessary table creations. See T155147.
return;
}

View file

@ -1285,7 +1285,8 @@ class AbuseFilterRunner {
[ 'af_id' => $loggedLocalFilters ],
$method
);
}
},
$method
);
}
@ -1314,7 +1315,8 @@ class AbuseFilterRunner {
[ 'af_id' => $loggedGlobalFilters ],
$method
);
}
},
$method
);
}