fix for new switch_log_printf prototype
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5415 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
69705d5d00
commit
9aa7ed492c
|
@ -732,7 +732,7 @@ static void dl_logger(char *file, const char *func, int line, int level, char *f
|
||||||
if (strlen(xmltxt) > 2) {
|
if (strlen(xmltxt) > 2) {
|
||||||
xml = switch_xml_parse_str(xmltxt, strlen(xmltxt));
|
xml = switch_xml_parse_str(xmltxt, strlen(xmltxt));
|
||||||
form = switch_xml_toxml(xml);
|
form = switch_xml_toxml(xml);
|
||||||
switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, level,
|
switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, level,
|
||||||
"%s:\n-------------------------------------------------------------------------------\n"
|
"%s:\n-------------------------------------------------------------------------------\n"
|
||||||
"%s\n", ll, form);
|
"%s\n", ll, form);
|
||||||
switch_xml_free(xml);
|
switch_xml_free(xml);
|
||||||
|
@ -741,7 +741,7 @@ static void dl_logger(char *file, const char *func, int line, int level, char *f
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, level, "%s\n", data);
|
switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, level, "%s\n", data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
Loading…
Reference in New Issue