Added additional debug logging and corrected logging error