Update debug print for log_to_yaml.