API: Log when too many values are passed for a multi-valued parameter
[lhc/web/wiklou.git] / includes / api / ApiBase.php
index fcb748c..66c1b53 100644 (file)
@@ -1171,6 +1171,7 @@ abstract class ApiBase extends ContextSource {
                        : self::LIMIT_SML1;
 
                if ( self::truncateArray( $valuesList, $sizeLimit ) ) {
+                       $this->logFeatureUsage( "too-many-$valueName-for-{$this->getModulePath()}" );
                        $this->setWarning( "Too many values supplied for parameter '$valueName': " .
                                "the limit is $sizeLimit" );
                }