Added tmp string for logging

This commit is contained in:
Aleksei Khabuliak 2023-05-15 14:42:38 -07:00
parent fc2992fe7b
commit 164af37ebc
1 changed files with 3 additions and 2 deletions

View File

@ -338,8 +338,9 @@ switch_status_t mod_amqp_connection_create(mod_amqp_connection_t **conn, switch_
amqp_boolean_t ssl_verify_peer = 1;
if (zstr(name)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Connection missing name attribute\n%s\n",
switch_xml_toxml(cfg, 1));
char *str_tmp = switch_xml_toxml(cfg, 1);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Connection missing name attribute\n%s\n", str_tmp);
switch_safe_free(str_tmp);
return SWITCH_STATUS_GENERR;
}