mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02:00
Added logging
This commit is contained in:
parent
b4b294b79a
commit
e5c802a3a6
@ -45,7 +45,13 @@ class addressbook_vcal extends addressbook_bo
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
var $clientProperties;
|
var $clientProperties;
|
||||||
|
/**
|
||||||
|
* Set Logging
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
var $log = 0;
|
||||||
|
var $logfile="/tmp/log-addressbook";
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
@ -56,7 +62,8 @@ class addressbook_vcal extends addressbook_bo
|
|||||||
function __construct($contact_app='addressbook', $_contentType='text/x-vcard', &$_clientProperties = array())
|
function __construct($contact_app='addressbook', $_contentType='text/x-vcard', &$_clientProperties = array())
|
||||||
{
|
{
|
||||||
parent::__construct($contact_app);
|
parent::__construct($contact_app);
|
||||||
#Horde::logMessage("vCalAddressbook Constructor for $_contentType", __FILE__, __LINE__, PEAR_LOG_DEBUG);
|
if($this->log)$this->logfile = $GLOBALS['egw_info']['server']['temp_dir']."/log-addressbook";
|
||||||
|
if($this->log)error_log(__LINE__.__METHOD__.__FILE__.array2string($_contentType)."\n",3,$this->logfile);
|
||||||
switch($_contentType)
|
switch($_contentType)
|
||||||
{
|
{
|
||||||
case 'text/vcard':
|
case 'text/vcard':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user