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.

Comments

jurgenhaas created an issue. See original summary.

jurgenhaas’s picture

Status: Active » Needs review
StatusFileSize
new734 bytes

Here is the patch.

mrinalini9’s picture

Status: Needs review » Needs work

Patch #2 is no longer applicable, so moving this to Needs Work.

Thanks!

suresh prabhu parkala’s picture

Status: Needs work » Needs review
StatusFileSize
new704 bytes

Re-rolled patch, please review.

mrinalini9’s picture

Reviewed patch #4, it applied cleanly and looks good to me. So, for me, it is RTBC.

Thanks!

  • japerry committed a937ba6 on 8.x-1.x authored by jurgenhaas
    Issue #3114040 by jurgenhaas, Suresh Prabhu Parkala: Downgrade error...
japerry’s picture

Status: Needs review » Fixed

I agree, it should be a warning. fixed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.