From 45bde8fef19fd6e379844303c637382d7a29667c Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Tue, 1 Jan 2019 22:13:27 +0100 Subject: [PATCH] Adding more information in case of warning (or dev) --- src/Util/LoggerFactory.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Util/LoggerFactory.php b/src/Util/LoggerFactory.php index e94cd2e97..e7b076bd6 100644 --- a/src/Util/LoggerFactory.php +++ b/src/Util/LoggerFactory.php @@ -26,6 +26,10 @@ class LoggerFactory { $logger = new Monolog\Logger($channel); $logger->pushProcessor(new Monolog\Processor\PsrLogMessageProcessor()); + $logger->pushProcessor(new Monolog\Processor\ProcessIdProcessor()); + + // Add more information in case of a warning and more + $logger->pushProcessor(new Monolog\Processor\IntrospectionProcessor(LogLevel::WARNING)); return $logger; } @@ -47,6 +51,9 @@ class LoggerFactory { $logger = new Monolog\Logger($channel); $logger->pushProcessor(new Monolog\Processor\PsrLogMessageProcessor()); + $logger->pushProcessor(new Monolog\Processor\ProcessIdProcessor()); + + $logger->pushProcessor(new Monolog\Processor\IntrospectionProcessor()); $logger->pushHandler(new FriendicaDevelopHandler($developerIp));