From: Alexander Smirnov Date: Tue, 27 Aug 2024 11:52:01 +0000 (+0300) Subject: Отключение info логов для очистки их от лишнего мусора X-Git-Tag: 1.4~25^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=a4ba9841a6bfe525c009307a17c9d928e5a203f0;p=erp24_rep%2Fyii-erp24%2F.git Отключение info логов для очистки их от лишнего мусора --- diff --git a/erp24/api3/core/behaviors/EventBehavior.php b/erp24/api3/core/behaviors/EventBehavior.php index c0eb6464..ac287db5 100644 --- a/erp24/api3/core/behaviors/EventBehavior.php +++ b/erp24/api3/core/behaviors/EventBehavior.php @@ -85,7 +85,9 @@ class EventBehavior extends Behavior $response->data = $result; } - $code === 0 ? \Yii::info($message, 'request') : \Yii::error($message, 'request'); + if ($code != 0) { + \Yii::error($message, 'request'); + } } } } \ No newline at end of file