Closed codemonkey1988 closed 6 months ago
I stumbled across this today.
May be a simple check in the SentryService
class, before returning isEnabled is enough to let this work?
is_null(self::$isEnabled) && self::inititalize();
The same is for the class \Networkteam\SentryClient\Content\ProductionExceptionHandler
and the Toolbar Information.
ok, if you configure both exception handler (Production and DebugException), Sentry is always initialized.
The Method \TYPO3\CMS\Core\Core\Bootstrap::initializeErrorHandling
is called, before loading ext_localconf.php
Maybe extend the documentation for these behaviour.
The
SentryLogWriter
by now only works in combination with one of the ExceptionHandler-Classes. TheSentryService
gets only initialized in the ExceptionHandler-Classes. Using the Logging-Framework without an exception, the data will not be send to sentry, because toSentryService::isEnabled()
check always returns false because of the missingSentryService::initialize()
call.Tested with TYPO3 12.4 sentry_client: 5.0.1