getMessage() ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- This class is the plugin's single logging sink and every public method returns early unless is_enabled() is true, i.e. unless the site owner set GATEWELL_DEBUG or WP_DEBUG. error_log() is the only way to write to the site's configured PHP error log, and nothing in the plugin calls it directly. error_log( '[Gatewell] Stack trace: ' . $exception->getTraceAsString() ); } }