Use debug logger
Add error handling for sending debugging logs