FS-3572 --resolve

This commit is contained in:
Marc Olivier Chouinard 2011-12-15 17:09:59 -05:00
parent 5ab4f42038
commit 53d694eb59
1 changed files with 12 additions and 2 deletions

View File

@ -231,8 +231,18 @@ static switch_status_t process_node(const switch_log_node_t *node, switch_log_le
if (ok) {
if (profile->log_uuid && !zstr(node->userdata)) {
char buf[2048];
switch_snprintf(buf, sizeof(buf), "%s %s", node->userdata, node->data);
mod_logfile_raw_write(profile, buf);
char *dup = strdup(node->data);
char *lines[100];
int argc, i;
argc = switch_split(dup, '\n', lines);
for (i = 0; i < argc; i++) {
switch_snprintf(buf, sizeof(buf), "%s %s\n", node->userdata, lines[i]);
mod_logfile_raw_write(profile, buf);
}
free(dup);
} else {
mod_logfile_raw_write(profile, node->data);
}