From ebdc53eb80bdde8c6a681e1e8f29bd4f5d04122c Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Mon, 15 Sep 2025 14:22:47 -0300 Subject: [PATCH 1/2] Redis max log size --- app/common/Implement/Log/Processor/ArrayBuilder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/Implement/Log/Processor/ArrayBuilder.php b/app/common/Implement/Log/Processor/ArrayBuilder.php index d323e4c..f6551ac 100644 --- a/app/common/Implement/Log/Processor/ArrayBuilder.php +++ b/app/common/Implement/Log/Processor/ArrayBuilder.php @@ -60,7 +60,8 @@ class ArrayBuilder try { $params = [ $this->container->get(Predis\ClientInterface::class), - "logs:{$handlerData['name']}" + "logs:{$handlerData['name']}", + 'capSize' => 100 ]; } catch (NotFoundExceptionInterface | ContainerExceptionInterface $exception) { $this->log($exception, ['handlerData' => $handlerData]); -- 2.49.0 From 1a94759f9d89767a4f29d253e2d018bf9695458b Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Mon, 15 Sep 2025 14:25:10 -0300 Subject: [PATCH 2/2] Configurable --- app/common/Implement/Log/Processor/ArrayBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/Implement/Log/Processor/ArrayBuilder.php b/app/common/Implement/Log/Processor/ArrayBuilder.php index f6551ac..50976f0 100644 --- a/app/common/Implement/Log/Processor/ArrayBuilder.php +++ b/app/common/Implement/Log/Processor/ArrayBuilder.php @@ -61,7 +61,7 @@ class ArrayBuilder $params = [ $this->container->get(Predis\ClientInterface::class), "logs:{$handlerData['name']}", - 'capSize' => 100 + 'capSize' => $handlerData['capSize'] ?? 100 ]; } catch (NotFoundExceptionInterface | ContainerExceptionInterface $exception) { $this->log($exception, ['handlerData' => $handlerData]); -- 2.49.0