mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-27 17:40:11 +00:00
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:
parent
beaae2431b
commit
59a654711b
|
@ -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 ]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue