This might be related to #3089263: Captcha Session ID broken with cacheable captcha backends. Regardless if and how that related issue gets resolved, I believe that the call to \Drupal::logger('CAPTCHA')->error() should be replaced by \Drupal::logger('CAPTCHA')->warning(). The reason behind that is, the event is important to the end user and not to site admins. The user is supposed to retry and only inform the site admin if the problem does not disappear.
Now, for errors in the logs, admins should usually be alerted in order for them to do something about the error. But this one is not for them as they can't do anything about it. That's why a warning is sufficient. I'll post a patch in a minute.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3114040-4.patch | 704 bytes | suresh prabhu parkala |
| #2 | 3114040-2.captcha.Downgrade-error-message-to-warning.patch | 734 bytes | jurgenhaas |
Comments
Comment #2
jurgenhaasHere is the patch.
Comment #3
mrinalini9 commentedPatch #2 is no longer applicable, so moving this to Needs Work.
Thanks!
Comment #4
suresh prabhu parkala commentedRe-rolled patch, please review.
Comment #5
mrinalini9 commentedReviewed patch #4, it applied cleanly and looks good to me. So, for me, it is RTBC.
Thanks!
Comment #7
japerryI agree, it should be a warning. fixed!