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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy