]> git.mxchange.org Git - friendica.git/commitdiff
Excluding Profiler from Loglines (better using the class above)
authorPhilipp Holzer <admin@philipp.info>
Sun, 17 Feb 2019 00:56:46 +0000 (01:56 +0100)
committerPhilipp Holzer <admin@philipp.info>
Sun, 17 Feb 2019 00:56:46 +0000 (01:56 +0100)
src/Factory/LoggerFactory.php

index 751a6357da84d4d3c00358196846979e949bfafb..f6e2d6039511e019848efd9b6c6b82007cf02cf2 100644 (file)
@@ -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');