From c42b9a50333be8e56ac562400415abba6a4d4b3f Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 12 Jun 2024 13:35:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(StoreStorageSend):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95=E5=88=B0?= =?UTF-8?q?=E9=98=9F=E5=88=97=E6=B6=88=E8=B4=B9=E5=A4=B1=E8=B4=A5=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/queue/redis/StoreStorageSend.php | 1 + config/log.php | 2 +- config/plugin/webman/redis-queue/log.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/queue/redis/StoreStorageSend.php b/app/queue/redis/StoreStorageSend.php index f51b487f..6d58da70 100644 --- a/app/queue/redis/StoreStorageSend.php +++ b/app/queue/redis/StoreStorageSend.php @@ -109,6 +109,7 @@ class StoreStorageSend implements Consumer public function onConsumeFailure(\Throwable $e, $package) { $package['max_attempts'] = 0; + Log::error('store-storage队列消费失败: ' . $e->getMessage() . ',line:' . $e->getLine() . ',file:' . $e->getFile()); return $package; } } diff --git a/config/log.php b/config/log.php index 31fdf967..59727598 100644 --- a/config/log.php +++ b/config/log.php @@ -20,7 +20,7 @@ return [ 'constructor' => [ runtime_path() . '/logs/'.date('Ym').'/.log', 2048, - Monolog\Logger::DEBUG, + Monolog\Logger::NOTICE, true, 0755 ], diff --git a/config/plugin/webman/redis-queue/log.php b/config/plugin/webman/redis-queue/log.php index 6be46eb2..c5015364 100644 --- a/config/plugin/webman/redis-queue/log.php +++ b/config/plugin/webman/redis-queue/log.php @@ -20,7 +20,7 @@ return [ 'constructor' => [ 'redis-queue', 7, //$maxFiles - Monolog\Logger::DEBUG, + Monolog\Logger::NOTICE, ], 'formatter' => [ 'class' => Monolog\Formatter\LineFormatter::class,