• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/classes/general/vi_history.php
  • Класс: CVoxImplantHistory
  • Вызов: CVoxImplantHistory::WriteToLog
static function WriteToLog($data, $title = '')
{
	if (!COption::GetOptionInt("voximplant", "debug"))
		return false;

	if (is_array($data))
	{
		unset($data['HASH']);
		unset($data['BX_HASH']);
	}
	else if (is_object($data))
	{
		if (property_exists($data, 'HASH') && $data->HASH)
		{
			$data->HASH = '';
		}
		if (property_exists($data, 'BX_HASH') && $data->BX_HASH)
		{
			$data->BX_HASH = '';
		}
	}
	AddMessage2Log(print_r($data, true), 'voximplant', 0);

	return true;
}