This plugin allows you to control upload of files based on file types and sizes.
This plugin reroutes all outgoing emails from a WordPress site (sent using the wp_mail() function) to a predefined configurable email address.
Add error or debug logging in your code and leave it there. Logs will only be recorded with this plugin, otherwise will be ignored.