Disable Logging Completely
-
Hey Steve,
I have hopefully a simple request for you: could you (pretty please) provide a way to completely disable WP’s error logging (i.e. not just hide it from the admin panel, but prevent it from logging to the wp_wordbooker_errorlogs table at all)? I took a look at the code and I believe the function in question is wordbooker_debugger(), but there’s kindof a lot going on there so I was hesitant to just put a “return;” at the start of it – plus modifying the plugin obviously isn’t ideal since it’d get overwritten with each update.
The reason is because I revision-control all my database backups, and an enormous percentage of the overall diffs come from just this one table – since it contains quite a few entries which change all the time. Obviously I see the merit to logging in general, but when I’m not trying to debug an issue it would save a tremendous amount of space in my repository if I could avoid all these changes getting committed each time. Manually going into the panel to click “Clear Diagnostics Message” before every backup is cumbersome, and calling wordbooker_clear_diagnosticlogs() i.e. on every page load (to make sure they’re always empty) would be very inefficient – it would be great if we could just prevent it from error_logging in the first place (and just enable them when actually needed).
Much appreciated… 🙂
J~
- The topic ‘Disable Logging Completely’ is closed to new replies.