Allow aggregation of captcha logs

without it, the normalized and non-normalized log entry would be the
same. As seen in:
https://logstash.wikimedia.org/app/dashboards#/doc/logstash-*/logstash-mediawiki-1-7.0.0-1-2023.08.03?id=UKIRu4kB6U_kV85AiHjE

Change-Id: I2eaca27b8c494b1b9749c2e9ad3770029c90b114
This commit is contained in:
Amir Sarabadani 2023-08-03 13:10:17 +02:00
parent beaae2431b
commit 59a654711b

View file

@ -1107,7 +1107,12 @@ class SimpleCaptcha {
* @param string $message
*/
protected function log( $message ) {
wfDebugLog( 'captcha', 'ConfirmEdit: ' . $message . '; ' . $this->trigger );
wfDebugLog(
'captcha',
'ConfirmEdit: ' . $message . '; {trigger}',
'all',
[ 'trigger' => $this->trigger ]
);
}
/**