Throw exception action should be able to prevent error logging

Issue information

From user: jurgenhaas

Contribution record

Fork management

Problem/Motivation

The action plugin to throw exceptions causes Drupal to log an error, which in most cases is helpful. But in some cases, this creates unwanted error messages, e.g. if the NotFoundHttpException is thrown as this is just a regular behaviour on the site and not an error.

Proposed resolution

Add an option to that action plugin to turn error logging off. It should be on by default.

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information