Cleanup debug logging.