Add more logging for emails