提交 cd7b29e3 authored 作者: Raymond Chandler's avatar Raymond Chandler

added script name to the syslog debug option for easier filtering/grepping

exploded xml output in debugging for easier readability


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk/scripts/contrib@8805 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 4f75d585
......@@ -51,6 +51,7 @@ class fs_curl {
* @return void
*/
public function fs_curl() {
openlog('fs_curl', LOG_NDELAY | LOG_PID, LOG_LOCAL0);
header('Content-Type: text/xml');
$this -> open_xml();
$this -> generate_request_array();
......@@ -187,7 +188,7 @@ class fs_curl {
}
$xml_out = $this -> xmlw -> outputMemory();
$this -> debug('---- Start XML Output ----');
$this -> debug($xml_out);
$this -> debug(explode("\n", $xml_out));
$this -> debug('---- End XML Output ----');
echo $xml_out;
exit();
......@@ -320,4 +321,4 @@ class fs_curl {
}
}
}
?>
\ No newline at end of file
?>
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论