Author: intralanman Date: Mon Jun 16 17:56:37 2008 New Revision: 8805 Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_curl.php Log: added script name to the syslog debug option for easier filtering/grepping exploded xml output in debugging for easier readability Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_curl.php ============================================================================== --- freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_curl.php (original) +++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_curl.php Mon Jun 16 17:56:37 2008 @@ -51,6 +51,7 @@ * @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 @@ } $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 @@ } } } -?> \ No newline at end of file +?>