Title: Search: Sanitize query errors for logging
Author: WordPress VIP Documentation
Published: February 18, 2021
Last modified: August 5, 2025

---

 1. [Changelog](https://docs.wpvip.com/changelog/)
 2. [VIP MU plugins [Production]](https://docs.wpvip.com/changelog/vip-mu-plugins-production/)
 3. Search: Sanitize query errors for logging

# Search: Sanitize query errors for logging

---

 18 February 2021

10:10:34 GMT+0000

 [ VIP MU plugins [Production] ](https://docs.wpvip.com/changelog/vip-mu-plugins-production/)

 [ Permalink  ](https://docs.wpvip.com/changelog/vip-mu-plugins-production/search-sanitize-query-errors-for-logging/)

Adds a sanitization step to the generated EP query to prevent sensitive info from
being logged.

[https://github.com/Automattic/vip-go-mu-plugins/pull/1988](https://github.com/Automattic/vip-go-mu-plugins/pull/1988)