• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/replicator/replicator.php
  • Класс: BitrixTasksReplicatorReplicator
  • Вызов: Replicator::writeToLog
private function writeToLog(): void
{
	if (!$this->isDebug())
	{
		return;
	}
	if ($this->currentResult->isSuccess())
	{
		return;
	}

	$errors = $this->currentResult->getErrorCollection()->toArray();
	(new Log())->collect('Replicator/V2 Debug: ' . var_export($errors, true));
}