Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

error_squelch

1 sites Security covered
View on drupal.org

Suppresses Drupal status, warning, and error messages whose text matches configured patterns. Useful for hiding persistent test-mode notices, CI/CD log noise, and chatty third-party module warnings that clutter screenshots, training videos, and on-call dashboards.

What it does

Filters $variables['message_list'] at hook_preprocess_status_messages() against an admin-configured list of patterns (substring or PHP regex). Matched messages are removed before the status messages template renders. Suppression is purely cosmetic; the underlying cause of any message is not addressed.

Key features

  • Substring match (case-insensitive, default) or PHP regex with delimiters
  • Optional logging of suppressed messages to the error_squelch channel for audit trails
  • Drush commands for managing patterns from the CLI: drush error-squelch:list / add / remove (aliases esl / esa / esrm)
  • Test mode injects a known status message visible only to users with the Administer Error Squelch permission, so operators can verify the filter is working before deploying patterns to production
  • Modern Drupal patterns: OO hooks via #[Hook], #config_target throughout the form, Drush 12+ command layout

When to use it

Reduce noise from known-benign messages while a proper fix is pending: a payment gateway's hardcoded "running in test mode" notice, missing-file warnings during an in-progress media sync, chatty contrib modules with unhelpful defaults. Not a substitute for fixing the underlying issue; the suppressed message is gone but the condition that triggered it isn't.

Requirements

  • Drupal 10.3 or later, or Drupal 11
  • No additional modules required
  • Drush 11 or later (optional, only for the CLI commands)

What's next

Error Squelch is now covered by the Drupal Security Advisory policy.
Vulnerability reports go to [email protected]; see
the
Drupal Security Team procedures
for the disclosure process. Do not
report security issues through the public issue queue.

No further behavioural changes are planned for the 1.0.x line; future
work will track Drupal core compatibility and any reported bugs.

Activity

Total releases
7
First release
Apr 2026
Latest release
1 month ago
Release cadence
2 days
Stability
14% stable

Release Timeline

Releases

Version Type Release date
1.0.0 Stable Apr 30, 2026
1.0.0-rc1 Pre-release Apr 26, 2026
1.0.0-beta1 Pre-release Apr 22, 2026
1.0.0-alpha3 Pre-release Apr 22, 2026
1.0.0-alpha2 Pre-release Apr 21, 2026
1.0.0-alpha1 Pre-release Apr 20, 2026
1.0.x-dev Dev Apr 20, 2026