]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Отключение info логов для очистки их от лишнего мусора origin/feature_smirnov_2024_08_27_switch_off_api3_info_logs
authorAlexander Smirnov <fredeom@mail.ru>
Tue, 27 Aug 2024 11:52:01 +0000 (14:52 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Tue, 27 Aug 2024 11:52:01 +0000 (14:52 +0300)
erp24/api3/core/behaviors/EventBehavior.php

index c0eb6464731b569d6ee37cf1209c79fc7364bb38..ac287db5c7f1949c13e8c3383b0c6068e14abb0a 100644 (file)
@@ -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