From: fomichev Date: Wed, 26 Feb 2025 12:40:11 +0000 (+0300) Subject: Логирование в файл X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=004aa48375b013ce847968762b1254e9392b5378;p=erp24_rep%2Fyii-erp24%2F.git Логирование в файл --- diff --git a/erp24/media/controllers/NotificationController.php b/erp24/media/controllers/NotificationController.php index 9c5ef109..e339944a 100644 --- a/erp24/media/controllers/NotificationController.php +++ b/erp24/media/controllers/NotificationController.php @@ -70,7 +70,7 @@ class NotificationController extends Controller $rawBody = Yii::$app->request->getRawBody(); file_put_contents( - self::OUT_DIR . '/notifications.json', + self::OUT_DIR . '/notifications.txt', PHP_EOL . date('Y-m-d H:i:s') . ' ' . $rawBody, FILE_APPEND );