From: Vladimir Fomichev Date: Fri, 22 Aug 2025 07:24:35 +0000 (+0300) Subject: Логирование ошибки X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=6f4dced65eb8b0c313bacd1a5b7f7aa4db49ceb7;p=erp24_rep%2Fyii-erp24%2F.git Логирование ошибки --- diff --git a/erp24/api2/controllers/DataController.php b/erp24/api2/controllers/DataController.php index db7757f1..74a1121c 100644 --- a/erp24/api2/controllers/DataController.php +++ b/erp24/api2/controllers/DataController.php @@ -2524,6 +2524,7 @@ class DataController extends BaseController } $mess['line'][] = __LINE__; } catch (Exception $e) { + LogService::apiDataLogs(1, json_encode($mess, JSON_UNESCAPED_UNICODE), $requestIdText); file_put_contents(self::OUT_DIR . '/log_error.txt', PHP_EOL . date("d.m.Y H:i:s", time()) . $e->getMessage() . " " . $e->getLine(), FILE_APPEND); Yii::error('Ошибка upload - блок catch '. json_encode($e->getMessage() . " " . $e->getLine(), JSON_UNESCAPED_UNICODE)); LogService::apiErrorLog(json_encode([