From 3409d62b2a8213c64c2284a6f097dc002dc04481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Sat, 16 Nov 2019 14:53:00 +0100 Subject: [PATCH] [Monolog] Do not autowire the ElasticsearchLogstashHandler service If so, Symfony will inject an HttpClient, and this one has a logger in it. So for each log, another log for the HTTP Client will be emitted => infinite loop => :boom: --- logging/handlers.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/logging/handlers.rst b/logging/handlers.rst index 1682040e504..25e3b27d740 100644 --- a/logging/handlers.rst +++ b/logging/handlers.rst @@ -28,7 +28,8 @@ To use it, declare it as a service: # config/services.yaml services: - Symfony\Bridge\Monolog\Handler\ElasticsearchLogstashHandler: ~ + Symfony\Bridge\Monolog\Handler\ElasticsearchLogstashHandler: + autowire: false .. code-block:: xml