Log transaction for debugging