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,