From: Philipp Holzer Date: Sun, 17 Feb 2019 00:56:46 +0000 (+0100) Subject: Excluding Profiler from Loglines (better using the class above) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a3b9a8fe6146fd845f47b9eaf430fc8efcfc0c60;p=friendica.git Excluding Profiler from Loglines (better using the class above) --- diff --git a/src/Factory/LoggerFactory.php b/src/Factory/LoggerFactory.php index 751a6357da..f6e2d60395 100644 --- a/src/Factory/LoggerFactory.php +++ b/src/Factory/LoggerFactory.php @@ -3,9 +3,11 @@ namespace Friendica\Factory; use Friendica\Core\Config\ConfigCache; +use Friendica\Core\Logger; use Friendica\Network\HTTPException\InternalServerErrorException; use Friendica\Util\Logger\FriendicaDevelopHandler; use Friendica\Util\Logger\FriendicaIntrospectionProcessor; +use Friendica\Util\Profiler; use Monolog; use Psr\Log\LoggerInterface; use Psr\Log\LogLevel; @@ -31,7 +33,7 @@ class LoggerFactory $logger->pushProcessor(new Monolog\Processor\PsrLogMessageProcessor()); $logger->pushProcessor(new Monolog\Processor\ProcessIdProcessor()); $logger->pushProcessor(new Monolog\Processor\UidProcessor()); - $logger->pushProcessor(new FriendicaIntrospectionProcessor(LogLevel::DEBUG, ['Friendica\\Core\\Logger'])); + $logger->pushProcessor(new FriendicaIntrospectionProcessor(LogLevel::DEBUG, [Logger::class, Profiler::class])); if (isset($config)) { $debugging = $config->get('system', 'debugging');