Title: This plugin spams error log
Last modified: April 26, 2024

---

# This plugin spams error log

 *  Resolved [codepuncher](https://wordpress.org/support/users/krypsin/)
 * (@krypsin)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/this-plugin-spams-error-log/)
 * Because this plugin has many useless `error_log()` it is flooding our error log.
 * Please can you remove them; they are not beneficial and only waste disk space.
 * example:
 *     ```wp-block-code
       function wshs_update_db_check() {
           error_log('Debug: Database update check triggered.');
           if (get_site_option( 'wshs_db_version' ) != WSHS_DATABASE_VERSION) {
               wshs_create_saved_code_table();
           }
       }
       add_action( 'plugins_loaded', 'wshs_update_db_check' );
       ```
   
 * This executes on every page because `plugins_loaded` is a hook on every page.
   This results in `Debug: Database update check triggered` being added to error
   log on every page load for every URL. This is not an error, either, so please
   do not log as an error.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ashish Ajani](https://wordpress.org/support/users/ashishajani/)
 * (@ashishajani)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/this-plugin-spams-error-log/#post-17860653)
 * Hi Codepuncher,
 * Thank you for using this plugin.
 * [https://wordpress.org/plugins/wp-simple-html-sitemap/](https://wordpress.org/plugins/wp-simple-html-sitemap/)
 * Removed unwanted error logs in the latest release.
 * Thanks.

Viewing 1 replies (of 1 total)

The topic ‘This plugin spams error log’ is closed to new replies.

 * ![](https://ps.w.org/wp-simple-html-sitemap/assets/icon-256x256.png?rev=1933627)
 * [WP Simple HTML Sitemap](https://wordpress.org/plugins/wp-simple-html-sitemap/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-simple-html-sitemap/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-simple-html-sitemap/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-simple-html-sitemap/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-simple-html-sitemap/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-simple-html-sitemap/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ashish Ajani](https://wordpress.org/support/users/ashishajani/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/this-plugin-spams-error-log/#post-17860653)
 * Status: resolved