This will allow us to avoid needlessly investigating master requests that
only happen on POST (which is already what we want for multi-DC).
Bug: T92357
Change-Id: Ia7437d00f5b89a8e318d85659d60e2f9f9f26149
* @param string $query
*/
protected function reportExpectationViolated( $expect, $query ) {
+ global $wgRequest;
+
$n = $this->expect[$expect];
$by = $this->expectBy[$expect];
$this->logger->info(
- "Expectation ($expect <= $n) by $by not met:\n$query\n" . wfBacktrace( true )
+ "[{$wgRequest->getMethod()}] Expectation ($expect <= $n) by $by not met:\n$query\n" . wfBacktrace( true )
);
}
}