Underpin-WP / underpin-plugin-boilerplate

7 stars 1 forks source link

Events that do not save to log should be skipped when WP_DEBUG is not set #19

Closed alexstandiford closed 4 years ago

alexstandiford commented 4 years ago

When WP_DEBUG is not set, logged events should not run at all, and be completely ignored.

This will help with potential memory problems in non-development/non-debugging situations.

This should, however, be possible to override on a per-request basis, both by the internal plugin, and external plugins.