*/
public $template_engine_instance = array();
+ public $process_id;
+
private $ldelim = array(
'internal' => '',
'smarty3' => '{{'
$this->query_string = '';
+ $this->process_id = uniqid("log", true);
+
startup();
set_include_path(
$Text = preg_replace("/\[event\-finish\](.*?)\[\/event\-finish\]/ism",'',$Text);
$Text = preg_replace("/\[event\-location\](.*?)\[\/event\-location\]/ism",'',$Text);
$Text = preg_replace("/\[event\-adjust\](.*?)\[\/event\-adjust\]/ism",'',$Text);
+ $Text = preg_replace("/\[event\-id\](.*?)\[\/event\-id\]/ism",'',$Text);
}
$a = get_app();
- logger("Import Atom/RSS feed", LOGGER_DEBUG);
+ if (!$simulate)
+ logger("Import Atom/RSS feed '".$contact["name"]."' (Contact ".$contact["id"].") for user ".$importer["uid"], LOGGER_DEBUG);
+ else
+ logger("Test Atom/RSS feed", LOGGER_DEBUG);
- if ($xml == "")
+ if ($xml == "") {
+ logger('XML is empty.', LOGGER_DEBUG);
return;
+ }
$doc = new DOMDocument();
@$doc->loadXML($xml);
$header["last-child"] = 0;
}
- if (!is_object($entries))
+ if (!is_object($entries)) {
+ logger("There are no entries in this feed.", LOGGER_DEBUG);
return;
+ }
$items = array();
if((! $debugging) || (! $logfile) || ($level > $loglevel))
return;
+ $process_id = session_id();
+
+ if ($process_id == "")
+ $process_id = get_app()->process_id;
+
$callers = debug_backtrace();
$logline = sprintf("%s@%s\t[%s]:%s:%s:%s\t%s\n",
datetime_convert(),
- session_id(),
+ $process_id,
$LOGGER_LEVELS[$level],
basename($callers[0]['file']),
$callers[0]['line'],